-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Renamed dev-dependency on self isn't respected #9454
Comments
Can you make a reproducible example? |
Reproducible example is in the steps: https://gist.github.com/Nemo157/105a7f43e0920d6ab9572e88871c18ee
Yes, exactly. For the purposes of writing examples in a crate that will be included in a facade I want to write the examples as if they were in the facade, but able to be run independently without actually building the facade crate. So in the crate I wouldn't be too heartbroken if it's instead decided that this should be an error. Similar to the error for having duplicate dependencies on the same crate, this would result in the non- |
@Nemo157 Wouldn't it be simpler to just |
These examples will appear in both the You can see an existing example of this sort of documentation setup in The way |
Problem
Adding a renamed dev-dependency with
path = "."
doesn't result in the correct name being used during compilation. The dependency is added, but it uses the original package name in the--extern
.Steps
Possible Solution(s)
Apply the requested rename of the dependency.
Notes
Output of
cargo version
:cargo 1.53.0-nightly (0ed318d18 2021-04-23)
The text was updated successfully, but these errors were encountered: