anki/cargo
Damien Elmes 9fe53ff549 switch to the stable Python ABI
Should allow the library to be imported in both Python 3.8+3.9.
2020-11-03 20:29:07 +10:00
..
remote switch to the stable Python ABI 2020-11-03 20:29:07 +10:00
BUILD.bazel update to latest fluent libs, and integrate maximum digit handling 2020-11-03 14:10:45 +10:00
Cargo.lock switch to the stable Python ABI 2020-11-03 20:29:07 +10:00
crates.bzl switch to the stable Python ABI 2020-11-03 20:29:07 +10:00
raze.toml Update to PyO3 0.12 2020-11-02 18:38:34 +10:00
README.md README updates 2020-11-03 09:03:00 +10:00
update.py switch to the stable Python ABI 2020-11-03 20:29:07 +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.6.1 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.'0.16.15']
data_attr = "glob([\"src/**\"])"

After updating dependencies, if one of these crates has changed to a new version, the version in raze.toml will need to be updated, and update.py re-run.

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