typedb / dependencies

Bazel dependency declarations for build tools reused across @vaticle repositories (only for @vaticle)
Mozilla Public License 2.0
12 stars 22 forks source link

Allow Bazel project to load Rust crates selectively #335

Open lolski opened 2 years ago

lolski commented 2 years ago

Currently, a Bazel project loads the crates by using the raze_fetch_remote_crates() macro which will load all declared crates without being able to select the ones that are actually needed.

That isn't ideal and we should create a more sophisticated tool for loading the crates selectively:

crates(
  "antlr-rust",
  "rust-rocksdb"
)
lolski commented 2 years ago

According to Max, it is not possible to provide a list of crates that you want to load in the raze_fetch_remote_crates() macro. However, let's still double-check if that's indeed the case.