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

Preserve package.metadata when packaging #4167

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

alexcrichton
Copy link
Member

Now that we use Serde this is actually trivial to implement!

Closes #4142

Now that we use Serde this is actually trivial to implement!

Closes rust-lang#4142
@rust-highfive
Copy link

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @matklad

@rust-highfive rust-highfive assigned matklad and unassigned brson Jun 14, 2017
@@ -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") {
Copy link
Member

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?

Copy link
Member Author

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.

@matklad
Copy link
Member

matklad commented Jun 14, 2017

#bors r+

@matklad
Copy link
Member

matklad commented Jun 14, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Jun 14, 2017

📌 Commit 0c704f8 has been approved by matklad

@bors
Copy link
Contributor

bors commented Jun 14, 2017

⌛ Testing commit 0c704f8 with merge f0f1446...

bors added a commit that referenced this pull request Jun 14, 2017
Preserve `package.metadata` when packaging

Now that we use Serde this is actually trivial to implement!

Closes #4142
@bors
Copy link
Contributor

bors commented Jun 14, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: matklad
Pushing f0f1446 to master...

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 this pull request may close these issues.

Keep package.metadata in new manifest
6 participants