mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-19 05:50:41 +08:00
Establish the Phase 1 reference implementation proposed by RFC 0012 while retaining the existing Cargo and Mise workflows during evaluation. - pin Bazel 9.1.1 and configure Bzlmod, rules_rs, LLVM, protobuf, and Rust 1.95 toolchains - import third-party crates from Cargo metadata and propagate the workspace version into Bazel targets - add library, binary, proc-macro, unit-test, and integration-test targets across the supported Rust workspace crates and drivers - generate protobuf Rust sources and descriptor sets under Bazel while preserving Cargo-compatible generated-code imports - annotate aws-lc-sys and zstd-sys native dependencies, build Z3 4.15.2 from source, and generate z3-sys bindings - make CLI and procfs test fixtures available as explicit Bazel inputs without relying on fixed host binary paths - define optimized release targets for Linux x86_64 and aarch64 CLI, sandbox, and gateway binaries, plus macOS aarch64 artifacts - add Bazel, buildifier, and lcov to the Nix development environment RFC: 0012 (rfc12 branch) Refs: #2491 Signed-off-by: Simon Scatton <sscatton@nvidia.com>
23 lines
754 B
Plaintext
23 lines
754 B
Plaintext
bazel_dep(name = "aws-lc", version = "5.1.0")
|
|
|
|
rules_rust_bindgen = use_extension("@rules_rs//rs:rules_rust_bindgen.bzl", "rules_rust_bindgen")
|
|
use_repo(rules_rust_bindgen, "rules_rust_bindgen")
|
|
|
|
register_toolchains("@rules_rust_bindgen//:all")
|
|
|
|
crate = use_extension("@rules_rs//rs:extensions.bzl", "crate")
|
|
crate.annotation(
|
|
crate = "aws-lc-rs",
|
|
gen_build_script = "off",
|
|
)
|
|
crate.annotation(
|
|
additive_build_file = "@rules_rs//3rd_party/aws-lc-sys:additive.BUILD.bazel",
|
|
crate = "aws-lc-sys",
|
|
extra_aliased_targets = {"aws_lc_sys_build_info": "aws_lc_sys_build_info"},
|
|
gen_build_script = "off",
|
|
rustc_flags = ["--cfg=use_bindgen_pregenerated"],
|
|
deps = ["@crates//:aws_lc_sys_build_info"],
|
|
)
|
|
|
|
inject_repo(crate, "aws-lc")
|