This directory is where third party crate dependencies are managed. There are two sets of crates: ./crates_no_std
and ./crates_std
. These are cargo
based “null” Rust libraries that exist solely to express which crates to expose to Bazel. ./rust_crates
is a Bazel repository that exposes these crates to Bazel.
./crates_no_std
and ./crates_std
by running cargo add <crate_name> --features <additional_features>
in the appropriate directory../rust_crates/aliases.bzl
by running cargo run -- --config config.toml > rust_crates/aliases.bzl
in this directory.