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

Don't warn about metadata keys in the manifest #2668

Merged
merged 1 commit into from
Jun 12, 2016

Conversation

alexcrichton
Copy link
Member

External tools may want to store metadata in Cargo.toml that they read but
Cargo itself doesn't read. For example cargo-apk uses this for pieces of
configuration. Cargo unfortunately, however, warns about these keys as "unused
keys in the manifest"

This commit instead whitelists the package.metadata key to not warn about any
data inside.

@rust-highfive
Copy link

r? @wycats

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

@alexcrichton
Copy link
Member Author

r? @brson

@bors
Copy link
Contributor

bors commented May 21, 2016

☔ The latest upstream changes (presumably #2687) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented May 26, 2016

☔ The latest upstream changes (presumably #2743) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member Author

ping r? @brson

(there's actually a number of pings to go for https://github.com/rust-lang/cargo/pulls/alexcrichton, but I'm gonna elide them in lieu of this one and reduce the emails)

@bors
Copy link
Contributor

bors commented Jun 10, 2016

☔ The latest upstream changes (presumably #2779) made this pull request unmergeable. Please resolve the merge conflicts.

@brson
Copy link
Contributor

brson commented Jun 11, 2016

@bors r+. Please add docs.

External tools may want to store metadata in `Cargo.toml` that they read but
Cargo itself doesn't read. For example `cargo-apk` uses this for pieces of
configuration. Cargo unfortunately, however, warns about these keys as "unused
keys in the manifest"

This commit instead whitelists the `package.metadata` key to not warn about any
data inside.
@alexcrichton
Copy link
Member Author

@bors: r=brson

@bors
Copy link
Contributor

bors commented Jun 12, 2016

📌 Commit ebd630d has been approved by brson

@bors
Copy link
Contributor

bors commented Jun 12, 2016

⌛ Testing commit ebd630d with merge 83a955b...

bors added a commit that referenced this pull request Jun 12, 2016
Don't warn about `metadata` keys in the manifest

External tools may want to store metadata in `Cargo.toml` that they read but
Cargo itself doesn't read. For example `cargo-apk` uses this for pieces of
configuration. Cargo unfortunately, however, warns about these keys as "unused
keys in the manifest"

This commit instead whitelists the `package.metadata` key to not warn about any
data inside.
@bors
Copy link
Contributor

bors commented Jun 12, 2016

@bors bors merged commit ebd630d into rust-lang:master Jun 12, 2016
@alexcrichton alexcrichton deleted the dont-warn-about-metadata branch June 14, 2016 14:34
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.

5 participants