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

Renaming Validation and Underscores/Hyphens #6138

Closed
cramertj opened this issue Oct 5, 2018 · 5 comments · Fixed by #6140
Closed

Renaming Validation and Underscores/Hyphens #6138

cramertj opened this issue Oct 5, 2018 · 5 comments · Fixed by #6140

Comments

@cramertj
Copy link
Member

cramertj commented Oct 5, 2018

Currently with the "rename-dependency" feature it's possible to have something like futures-01 = { version = "0.1", optional = true, package = "futures" }. However, this will cause a --extern futures-01=... flag to rustc, which results in an unusable crate name of futures-01, rather than the usable futures_01. I think there should either be a warning/error on invalid renamings, possibly with an additional conversion of renamed-names from hyphens to underscores (as is normally done with the package name specified in Cargo.toml).

@ehuss
Copy link
Contributor

ehuss commented Oct 5, 2018

I think this is a duplicate of #51795.

@cramertj
Copy link
Member Author

cramertj commented Oct 5, 2018

@ehuss Yup, thanks-- closing as dup of rust-lang/rust#51795

@cramertj
Copy link
Member Author

cramertj commented Oct 5, 2018

Actually-- that issue is filed against rust-lang/rust-- maybe we should keep this one open, since it's actually an issue against cargo?

@ehuss
Copy link
Contributor

ehuss commented Oct 5, 2018

Yea, keeping this open is fine. I can take a look to see how difficult it would be to fix.

bors added a commit that referenced this issue Oct 5, 2018
Fix dashes in rename dependencies.

Fixes #6138
@bors bors closed this as completed in #6140 Oct 5, 2018
@cramertj
Copy link
Member Author

cramertj commented Oct 6, 2018

Thanks so much for the quick turnaround!

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 a pull request may close this issue.

2 participants