24 lines
669 B
Markdown
24 lines
669 B
Markdown
This folder integrates Rust crates.io fetching into Bazel.
|
|
|
|
To update dependencies, ensure a local Rust environment is available
|
|
(eg install rustup), then run:
|
|
|
|
```
|
|
cargo install cargo-raze --version 0.8.0
|
|
```
|
|
|
|
After updating dependencies in ../rslib/Cargo.toml, change to this
|
|
folder and run python update.py to update the external Bazel repositories
|
|
to point to the updated deps.
|
|
|
|
A couple of crates need extra work to build with Bazel, and are listed
|
|
in ../Cargo.toml. For example:
|
|
|
|
```toml
|
|
[package.metadata.raze.crates.pyo3.'*']
|
|
compile_data_attr = "glob([\"**\"])"
|
|
```
|
|
|
|
With minor version updates, you should not normally need to modify
|
|
the entries in that file.
|