diff --git a/BUILD b/BUILD index 26a888ea..37d4adec 100644 --- a/BUILD +++ b/BUILD @@ -13,7 +13,7 @@ # limitations under the License. load("@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library") exports_files([ "Cargo.toml", @@ -38,3 +38,17 @@ rust_library( "//bazel/cargo/remote:log", ], ) + +rust_binary( + name = "http_auth_random", + srcs = ["examples/http_auth_random/src/lib.rs"], + crate_type = "cdylib", + edition = "2018", + out_binary = True, + rustc_flags = ["-Cstrip=debuginfo"], + visibility = ["//visibility:private"], + deps = [ + ":proxy_wasm", + "//bazel/cargo/remote:log", + ], +)