bazelbuild / bazelbuild/rules_rust
Cargo `experimental_symlink_execroot`
Open
cargo
enhancement
needs-triage
- Dominant language
- Starlark
- Stars
- 843
- Forks
- 651
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 15
Description
https://github.com/bazelbuild/rules_rust/pull/1781 introduced functionality useful for workspaces which use hermetic/portable C/C++ toolchains and paths are relative to the execroot. This flag enables this behavior for all build scripts. To enable the flag, simply pass
```
--@rules_rust//cargo/settings:experimental_symlink_execroot
```
Note that the feature `symlink-exec-root` will also enable this behavior but it's encouraged to use the setting above for increased visibility and traceability.
Contributor guide
Assessment
This issue has not been assessed yet.