anki/cargo
2020-12-09 15:45:01 +10:00
..
remote drop unused i686 references 2020-12-09 15:45:01 +10:00
BUILD.bazel switch to workspace for Rust code 2020-11-24 18:41:03 +10:00
BUILD.reqwest.bazel drop unused i686 references 2020-12-09 15:45:01 +10:00
crates.bzl bump rust deps 2020-12-09 15:34:43 +10:00
licenses.json bump rust deps 2020-12-09 15:34:43 +10:00
README.md switch to workspace for Rust code 2020-11-24 18:41:03 +10:00
update.py update Rust deps incl. Pyo3 2020-12-01 16:48:45 +10: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 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.

A couple of crates need extra work to build with Bazel, and are listed in ../Cargo.toml. For example:

[package.metadata.raze.crates.pyo3.'*']
data_attr = "glob([\"**\"])"

With minor version updates, you should not normally need to modify the entries in that file.