-
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
Preserve package.metadata
when packaging
#4167
Conversation
Now that we use Serde this is actually trivial to implement! Closes rust-lang#4142
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
r? @matklad |
@@ -109,9 +109,7 @@ pub fn to_manifest(contents: &str, | |||
let manifest: TomlManifest = serde_ignored::deserialize(root, |path| { | |||
let mut key = String::new(); | |||
stringify(&mut key, &path); | |||
if !key.starts_with("package.metadata") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I think this if is intentional to avoid warning about "key metadata is unused". Do we want to start issuing this warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is indeed intentional! Note though that these keys are now all considered used because they're decoded directly into the manifest, so they won't show up here any more.
#bors r+ |
@bors r+ |
📌 Commit 0c704f8 has been approved by |
Preserve `package.metadata` when packaging Now that we use Serde this is actually trivial to implement! Closes #4142
☀️ Test successful - status-appveyor, status-travis |
Now that we use Serde this is actually trivial to implement!
Closes #4142