commit | e3f6258b1e1660652ae044f01c6dac074f9fb206 | [log] [tgz] |
---|---|---|
author | Cornelius Riemenschneider <cornelius@github.com> | Mon Jun 03 15:09:39 2024 +0200 |
committer | GitHub <noreply@github.com> | Mon Jun 03 13:09:39 2024 +0000 |
tree | 87922b50661f0f5aa91856d180b2d22b7a76bb11 | |
parent | a92de54fcdadb56c5bcd677793b7a763e4e14672 [diff] |
crate_universe: Don't include crate name in build script path. (#2663) This PR shortens the path to the build script (potentially significantly), which helps with long-path issues on Windows. This change is motivated by the crate `tree-sitter-embedded-template`, which has a too long path to the compiled build script otherwise, and which then fails to build on Windows in a `bzlmod` setting. Fixes https://github.com/bazelbuild/rules_rust/issues/2520. The cargo build script name was used to automatically derive the cargo package name, this now went into a separate override parameter that is generated by the crate-universe tooling. There's never two build scripts in a single crate, so I don't see how having a single build script target with a single name would be a problem.
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.