anki/cargo/README.md

22 lines
820 B
Markdown
Raw Normal View History

2020-11-03 00:03:00 +01:00
This folder integrates Rust crates.io fetching into Bazel.
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.
You will need to have cargo-raze 0.7.0 or later installed, which is not
2020-11-24 09:41:03 +01:00
currently included in this Bazel project. When it's released as stable,
you can install it by installing rustup, then running "cargo install cargo-raze".
For now it needs to be built from commit 4d1721ed32e19dfea8794f868a4884bdffdc4014.
2020-11-03 00:03:00 +01:00
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.'*']
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.