anki/cargo/README.md

24 lines
669 B
Markdown
Raw Normal View History

2020-11-03 00:03:00 +01:00
This folder integrates Rust crates.io fetching into Bazel.
2020-12-18 02:56:56 +01:00
To update dependencies, ensure a local Rust environment is available
(eg install rustup), then run:
```
cargo install cargo-raze --version 0.8.0
```
2020-11-03 00:03:00 +01:00
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
2020-11-24 09:41:03 +01:00
in ../Cargo.toml. For example:
2020-11-03 00:03:00 +01:00
```toml
2020-11-24 09:41:03 +01:00
[package.metadata.raze.crates.pyo3.'*']
2020-12-15 11:28:10 +01:00
compile_data_attr = "glob([\"**\"])"
2020-11-03 00:03:00 +01:00
```
With minor version updates, you should not normally need to modify
the entries in that file.