1load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test") 2 3rust_binary( 4 name = "no_cargo_manifests", 5 srcs = glob(["**/*.rs"]), 6 edition = "2018", 7 deps = [ 8 "@no_cargo//:axum", 9 "@no_cargo//:hyper", 10 "@no_cargo//:mime", 11 "@no_cargo//:serde_json", 12 "@no_cargo//:tokio", 13 "@no_cargo//:tower", 14 "@no_cargo//:tower-http", 15 "@no_cargo//:tracing", 16 "@no_cargo//:tracing-subscriber", 17 ], 18) 19 20rust_test( 21 name = "unit_test", 22 crate = ":no_cargo_manifests", 23 edition = "2018", 24) 25