-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
document the difference between 'crate-type = ["proc-macro"]' and 'proc-macro = true' #5310
Comments
soo.... just in case the aforementioned error is a bug in... whatever it is that is buggy, here's a repro:
|
https://github.com/goffrie/plex/blob/d59296b7663d8ed3d9ebbc7266c859903663ca69/Cargo.toml Everything appears to work fine on the crate author's end, but |
Does anyone have ideas on how we can make this friction go away? One way this comes up is when you don't set anything in
which might lead one to set the One thought I had is to just automatically set I'm not sure if adding more documentation will help, since the documentation already directs people towards |
Hmm, so the troublesome error message comes from rustc, I gather? The current impression I get is that it is more or less a bug that cargo even allows Edit: Hmm. Okay, I see what you mean with setting it via attribute. Maybe that could be deprecated as well in rustc, although tbh it doesn't bother me so much that |
@ehuss could we perhaps both update the rustc error message as well as simply interpret |
Treat "proc-macro" crate type the same as `proc-macro = true` Effectively closes #5310 since they are now identical.
...whatever it is.
All I can really see is that
crate-type = ["proc-macro"]
makes rustdoc die withproc-macro crate not dylib
when used in a path dependency.(er... now that I think about it, I wonder if that's a bug in rustdoc)
(...or even a bug in cargo)
(...or rustc even! On stable, it produces the same error, but as an ICE!)
The text was updated successfully, but these errors were encountered: