commit | feb75f165ce9ee408b9208f453153e6ef2cf9b73 | [log] [tgz] |
---|---|---|
author | Daniel Wagner-Hall <dwagnerhall@apple.com> | Wed Aug 30 16:48:56 2023 +0100 |
committer | GitHub <noreply@github.com> | Wed Aug 30 08:48:56 2023 -0700 |
tree | 7ed3543618d3eb24f03d2054ae5252e49900bf38 | |
parent | b55575e127ba15529f8bc73d8419dbbe3d0801ed [diff] |
crate_universe: Allow platform-specific build script env vars (#2139) My use-case here is needing to point at different paths for libclang.so when using bindgen on different platforms. This allows specifying build script env vars in annotations like: ```starlark build_script_env = { "BORING_BSSL_PATH": "$(execpath @//third_party/boringssl:gen_dir)", "LIBCLANG_PATH": { "x86_64-unknown-linux-gnu": "$(execpath @libclang_linux_x86_64//file:libclang.so)", }, }, ``` which will unconditionally set `$BORING_BSSL_PATH`, but will only set `$LIBCLANG_PATH` on x86-64 Linux. We could in theory support this kind of construct for all annotation fields, but I've only added it where I happened to need it for now.
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.