Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Replace slashes with underscores in default crate names." #1335

Merged
merged 1 commit into from
May 13, 2022

Conversation

cfredric
Copy link
Contributor

Reverts #1334

This commit inadvertently changed the location (directory) of the output created by rustc. Before this change, a rust_binary target named bin/foo would create an executable named foo in a new subdirectory named bin. After this change, the same rust_binary target would create an executable named bin_foo in the normal blaze output directory.

The previous behavior is consistent with other bazel rule behavior (e.g. cc_binary), so rules_rust should keep that behavior. I'd like to roll this back, and create a new PR to handle slashes in a better way.

@scentini scentini self-requested a review May 13, 2022 18:19
@scentini scentini merged commit 1b91e59 into bazelbuild:main May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants