Skip to content

Commit

Permalink
Restore Bazel example to verify working rules_rust. (#222)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
PiotrSikora authored Feb 14, 2024
1 parent 9b4b4a5 commit d7bce9d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
],
)

0 comments on commit d7bce9d

Please sign in to comment.