Skip to content

rustpkg: Allow building executables, and normalize '-' to '_' - #5896

Closed
catamorphism wants to merge 1 commit into
rust-lang:incomingfrom
catamorphism:rustpkg
Closed

rustpkg: Allow building executables, and normalize '-' to '_'#5896
catamorphism wants to merge 1 commit into
rust-lang:incomingfrom
catamorphism:rustpkg

Conversation

@catamorphism

Copy link
Copy Markdown
Contributor

r? @graydon First, don't assume that all crates are library crates; use the
parser to determine whether a potential crate has a main function.

Second, normalize any hyphens that appear in the package ID to
underscores.

First, don't assume that all crates are library crates; use the
parser to determine whether a potential crate has a `main` function.
Second, normalize any hyphens that appear in the package ID to
underscores.
@catamorphism

Copy link
Copy Markdown
ContributorAuthor

Will open a new pull request.

calebcartwright pushed a commit to calebcartwright/rust that referenced this pull request Oct 23, 2023
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
7060: Fix mbe fail to pass expr with attr r=edwin0cheng a=edwin0cheng
bors r+
Fixesrust-lang#5896
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
Sign up for freeto 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.

1 participant

@catamorphism