Skip to content
Closed
12 changes: 11 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ RUST_VERSION = "nightly/2026-11-16"
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = RUST_EDITION,
# We need those extra target triples so that we can build universal binaries on macos
# We need those extra target triples so that we can build universal binaries on macos, and so
# that license notice inventories can analyze every shipped platform from any host
extra_target_triples = [
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
],
# generated by buildutils-internal/scripts/fill-rust-sha256s.py (internal repo)
sha256s = {
Expand Down Expand Up @@ -109,6 +113,12 @@ use_repo(rust, "rust_toolchains")

register_toolchains("@rust_toolchains//:all")

# analysis-only, selected solely by the platforms of license notice inventories
register_toolchains(
"//misc/notices:stub_cc",
"//misc/notices:all",
)

# deps for python extractor
# keep in sync by running `misc/bazel/3rdparty/update_all_rust_deps.sh`
py_deps = use_extension("//misc/bazel/3rdparty:py_deps_extension.bzl", "p")
Expand Down
5 changes: 5 additions & 0 deletions cpp/extractor/bmn/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load("@rules_rust//rust:defs.bzl", "rust_test")
load("//misc/bazel:rust.bzl", "codeql_rust_binary")
load("//misc/bazel:rust_notices.bzl", "rust_notices")
load("//misc/bazel/3rdparty/rust_workspace_deps:defs.bzl", "all_crate_deps")

exports_files([
Expand All @@ -14,6 +15,10 @@ codeql_rust_binary(
deps = all_crate_deps(normal = True),
)

rust_notices(
components = [":bmn"],
)

rust_test(
name = "unit_tests",
crate = ":single_arch/bmn",
Expand Down
Loading
Loading