Skip to content

Commit d7bce9d

Browse files
authored
Restore Bazel example to verify working rules_rust. (#222)
* Restore Bazel example to verify working rules_rust. Bazel examples were removed in #146. Signed-off-by: Piotr Sikora <[email protected]> * review: strip debuginfo. Signed-off-by: Piotr Sikora <[email protected]> --------- Signed-off-by: Piotr Sikora <[email protected]>
1 parent 9b4b4a5 commit d7bce9d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

BUILD

+15-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
load("@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script")
16-
load("@rules_rust//rust:defs.bzl", "rust_library")
16+
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
1717

1818
exports_files([
1919
"Cargo.toml",
@@ -38,3 +38,17 @@ rust_library(
3838
"//bazel/cargo/remote:log",
3939
],
4040
)
41+
42+
rust_binary(
43+
name = "http_auth_random",
44+
srcs = ["examples/http_auth_random/src/lib.rs"],
45+
crate_type = "cdylib",
46+
edition = "2018",
47+
out_binary = True,
48+
rustc_flags = ["-Cstrip=debuginfo"],
49+
visibility = ["//visibility:private"],
50+
deps = [
51+
":proxy_wasm",
52+
"//bazel/cargo/remote:log",
53+
],
54+
)

0 commit comments

Comments
 (0)