phase 0 - implement basic web server
This commit is contained in:
parent
f065bb5262
commit
5fa84d9d7f
3 changed files with 614 additions and 9 deletions
19
MODULE.bazel
19
MODULE.bazel
|
|
@ -85,5 +85,24 @@ crate.spec(
|
|||
version = "4.0",
|
||||
features = ["derive"],
|
||||
)
|
||||
crate.spec(
|
||||
package = "axum",
|
||||
version = "0.7",
|
||||
features = ["json"],
|
||||
)
|
||||
crate.spec(
|
||||
package = "tower",
|
||||
version = "0.4",
|
||||
)
|
||||
crate.spec(
|
||||
package = "tower-http",
|
||||
version = "0.5",
|
||||
features = ["cors"],
|
||||
)
|
||||
crate.spec(
|
||||
package = "hyper",
|
||||
version = "1.0",
|
||||
features = ["full"],
|
||||
)
|
||||
crate.from_specs()
|
||||
use_repo(crate, "crates")
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -39,11 +39,15 @@ rust_library(
|
|||
"event_log/stdout.rs",
|
||||
"event_log/sqlite.rs",
|
||||
"event_log/postgres.rs",
|
||||
"service/mod.rs",
|
||||
"service/handlers.rs",
|
||||
":generate_databuild_rust",
|
||||
],
|
||||
edition = "2021",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@crates//:axum",
|
||||
"@crates//:log",
|
||||
"@crates//:prost",
|
||||
"@crates//:prost-types",
|
||||
"@crates//:rusqlite",
|
||||
|
|
@ -57,6 +61,28 @@ rust_library(
|
|||
],
|
||||
)
|
||||
|
||||
# Build Graph Service binary
|
||||
rust_binary(
|
||||
name = "build_graph_service",
|
||||
srcs = ["service/main.rs"],
|
||||
edition = "2021",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":databuild",
|
||||
"@crates//:axum",
|
||||
"@crates//:tokio",
|
||||
"@crates//:tower",
|
||||
"@crates//:tower-http",
|
||||
"@crates//:hyper",
|
||||
"@crates//:serde",
|
||||
"@crates//:serde_json",
|
||||
"@crates//:log",
|
||||
"@crates//:simple_logger",
|
||||
"@crates//:clap",
|
||||
"@crates//:uuid",
|
||||
],
|
||||
)
|
||||
|
||||
# Legacy filegroup for backwards compatibility
|
||||
filegroup(
|
||||
name = "proto",
|
||||
|
|
|
|||
Loading…
Reference in a new issue