anki/cargo
Damien Elmes ded626f0b9 render deck description with markdown; strip images
To support images on that screen, we'll first need to adjust the base url
for each platform, or rewrite the local image URLs, as otherwise they
are resolved to _anki/pages/...
2021-02-06 15:02:40 +10:00
..
remote render deck description with markdown; strip images 2021-02-06 15:02:40 +10:00
BUILD.bazel switch to workspace for Rust code 2020-11-24 18:41:03 +10:00
BUILD.reqwest.bazel sanitize deck description in decks screen on backend 2021-02-06 13:42:38 +10:00
crates.bzl render deck description with markdown; strip images 2021-02-06 15:02:40 +10:00
licenses.json render deck description with markdown; strip images 2021-02-06 15:02:40 +10:00
README.md update to cargo-raze 0.8.0 release 2020-12-18 11:56:56 +10:00
update.py update prost to new 0.7 release+auto stage changes 2020-12-28 10:12:35 +10:00

This folder integrates Rust crates.io fetching into Bazel.

To update dependencies, ensure a local Rust environment is available (eg install rustup), then run:

cargo install cargo-raze --version 0.8.0

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.

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.