anki/cargo
2020-12-15 20:28:10 +10:00
..
remote update to latest cargo-raze 2020-12-15 20:28:10 +10:00
BUILD.bazel switch to workspace for Rust code 2020-11-24 18:41:03 +10:00
BUILD.reqwest.bazel Update rslib dep nom 2020-12-15 08:19:52 +00:00
crates.bzl Update rslib dep nom 2020-12-15 08:19:52 +00:00
licenses.json Update rslib dep nom 2020-12-15 08:19:52 +00:00
README.md update to latest cargo-raze 2020-12-15 20:28:10 +10:00
update.py fix update.py for compatible 2020-12-15 08:09:11 +00: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.

Currently you'll need to:

  • have a local Rust environment installed
  • fetch cargo-raze from GitHub
  • check out 52f20dda88da0feb696ec2fea32e82840d203c13
  • then change to the impl folder, and run 'cargo install --path .' to install it.

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

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

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