commit | 36b57af7b2ac85396d1b5655f989d0c21dca2096 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Jan 03 13:12:33 2023 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 03 13:12:33 2023 -0800 |
tree | 46c2fc11273264120f94742c960adc3d559c8dbe | |
parent | d916a6f5230f10b54963aac613ef12548904b987 [diff] |
Add gen_binaries annotation to control which bins to make target for (#1718) * Add gen_binaries annotation to control which bins to make target for Example: crates_vendor( name = "vendor", annotations = { "aaa": [crate.annotation( # Do not generate `rust_binary` for any of the package's bins. # This is the new default behavior. gen_binaries = False, )], "bbb": [crate.annotation( # Generate `rust_binary` for all bins. This is the previous # default behavior in rules_rust 0.15.0. gen_binaries = True, )], "ccc": [crate.annotation( # Generate `rust_binary` for a specific subset of the bins. gen_binaries = ["gcc-shim"], )], }, cargo_lockfile = ":Cargo.lock", manifests = [":Cargo.toml"], mode = "remote", tags = ["manual"], vendor_path = "bazel", ) * Make generate_binaries globally configurable * Document binary dependencies
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.