fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
120f911d
0.5.0
1#[[ 2## Overview 3 4These rules are for using [Bindgen][bindgen] to generate [Rust][rust] bindings to C (and some C++) libraries. 5 6[rust]: http://www.rust-lang.org/ 7[bindgen]: https://github.com/rust-lang/rust-bindgen 8 9See the [bindgen example](https://github.com/bazelbuild/rules_rust/tree/main/examples/ffi/rust_calling_c/simple/BUILD.bazel#L9) for a more complete example of use. 10 11### Setup 12 13To use the Rust bindgen rules, add the following to your `WORKSPACE` file to add the 14external repositories for the Rust bindgen toolchain (in addition to the [rust rules setup](https://bazelbuild.github.io/rules_rust/#setup)): 15 16```python 17load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains") 18 19rust_bindgen_dependencies() 20 21rust_bindgen_register_toolchains() 22``` 23 24--- 25 26--- 27 28]]#