|
|
|
|
|
by daniel_rh
1415 days ago
|
|
I think the newer version of this is https://github.com/bazelbuild/rules_rust
which lets you either vendor the dependencies or pull them from your Cargo.toml directly every time. Per the article: bazel + rules_rust should have the flexibility to override the linker flags that Cargo may take as required since that would be a property of the bazel toolchain used. It's a nice amalgamation of how cargo works and how bazel works. In general bazel supports hermetic builds, multiple toolchains, cross complilation, and ways to compile multi-language projects. I still wish that Cargo.toml didn't support build.rs as it can cause a lot of system-dependent problems that bazel sidesteps entirely by being hermetic. |
|