anki/cargo
2020-11-12 20:03:41 +10:00
..
remote rs dep updates 2020-11-12 20:03:41 +10:00
BUILD.bazel dump crate licenses as part of update run 2020-11-12 20:03:41 +10:00
Cargo.lock rs dep updates 2020-11-12 20:03:41 +10:00
crates.bzl rs dep updates 2020-11-12 20:03:41 +10:00
licenses.json dump crate licenses as part of update run 2020-11-12 20:03:41 +10:00
raze.toml update to cargo-raze 0.7.0 + latest deps 2020-11-10 09:48:42 +10:00
README.md update to cargo-raze 0.7.0 + latest deps 2020-11-10 09:48:42 +10:00
update.py dump crate licenses as part of update run 2020-11-12 20:03:41 +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. You can install it by installing rustup, then running "cargo install cargo-raze".

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

[raze.crates.ring.'*']
data_attr = "glob([\"src/**\"])"

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

The ../pylib/rsbridge folder has a dependency on pyo3, which is special-cased in update.py. If updating the pyo3 version, update.py needs to be updated as well.