rules_rust/test/build_env
Cameron Martin 33fdddd03c
Fix bzlmod examples on windows (#2454)
On windows (and some other platforms), the file extension of cargo,
rustc, etc have an extension. The module extension for loading crates
did not take this into account, causing it to error on windows.

Additionally, when using bzlmod to build vendored crates, the runfiles
tree would exceed the 260 char windows path limit. To mitigate this, I
have shortened the internal_deps module extension to just `i` and
changed the build script suffix to `_bs` from `_build_script`. This
makes the path names below the 260 char limit.

This makes the bzlmod CI run on windows, to avoid regressing this.
Currently gen_rust_project does not run on windows for other reasons,
although we do build this.
2024-02-23 12:55:58 +00:00
..
src Reformat Rust code (#757) 2021-05-27 13:37:23 -07:00
tests Propagate rustc_env{,_files} from rust_test.crate (#1443) 2022-08-10 10:21:25 +02:00
BUILD.bazel Fix bzlmod examples on windows (#2454) 2024-02-23 12:55:58 +00:00