-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Accessing the crate's version and name from within #8129
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
Comments
The solution could maybe be related to that of #5642 |
This was recently requested. Given that we have a unified crate_id now, a |
Cargo is now responsible for versions and exports version numbers through environment variables. Rustc, however, is still responsible for the name of the crate, so all that's really necessary to do here would be to expose the crate name via some sort of syntax extension (possibly) |
@alexcrichton couldn't the |
@steveklabnik yes that's just passed in through |
I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized. This issue has been moved to the RFCs repo: rust-lang/rfcs#782 |
It would be great to have a way to access the values in:
#[link(name = "blob", vers = "1.0", author = "foo")];
To print usage info in executables without duplicating this info.
The text was updated successfully, but these errors were encountered: