-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Default Cargo.toml template provide help for completing the metadata #6881
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Thanks for the PR! I would personally prefer to not do this as I feel it clutters up the template with a bit too much noise, but perhaps we could add a comment by default with a link to the reference? |
@alexcrichton I fixed it ! How is it like this? |
Since the intention was to teach about the metadata in the # See more keys and their definitions at https://... |
I changed it. It will be like this.
|
Team member @alexcrichton has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
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.
I think including cargo fmt
changes can make it difficult to review PRs. My preference is to only format what the PR touches. Broad-sweeping cargo fmt
changes can be done as separate PRs.
tests/testsuite/new.rs
Outdated
@@ -520,5 +520,13 @@ fn new_with_blank_email() { | |||
.run(); | |||
|
|||
let contents = fs::read_to_string(paths::root().join("foo/Cargo.toml")).unwrap(); | |||
assert!(contents.contains(r#"authors = ["Sen"]"#), contents); | |||
assert!(contents.contains(r#"authors = ["Sen"]"#)); |
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.
Why did this change?
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.
I did not know that it was a custom message. I saw document and understood that this change is unnecessary.
I like the "just add a comment" version much better. 👍 I'd prefer to see this rebased so it doesn't add-then-remove the fields in successive commits. |
09469e3
to
d3cfdaa
Compare
d3cfdaa
to
f781d2d
Compare
Succeeded in rebase. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@bors: r+ |
📌 Commit f781d2d has been approved by |
Default Cargo.toml template provide help for completing the metadata ## Descriptio This is new Cargo.toml example. ```toml [package] name = "foo" version = "0.1.0" authors = ["k-nasa"] documentation = "" homepage = "" repository = "" readme = "" categories = [] keywords = [] license = "" edition = "2018" [dependencies] # See more https://doc.rust-lang.org/cargo/reference/manifest.html ``` ## Motivation close: #6845
☀️ Test successful - checks-travis, status-appveyor |
Update cargo 12 commits in beb8fcb5248dc2e6aa488af9613216d5ccb31c6a..759b6161a328db1d4863139e90875308ecd25a75 2019-04-30 23:58:00 +0000 to 2019-05-06 20:47:49 +0000 - Small things (rust-lang/cargo#6910) - Fix skipping over invalid registry packages (rust-lang/cargo#6912) - Fixes rust-lang/cargo#6874 (rust-lang/cargo#6905) - doc: Format examples of version to ease reading (rust-lang/cargo#6907) - fix more typos (codespell) (rust-lang/cargo#6903) - Parse less JSON on null builds (rust-lang/cargo#6880) - chore: Update opener to 0.4 (rust-lang/cargo#6902) - Update documentation for auto-discovery. (rust-lang/cargo#6898) - Update some doc links. (rust-lang/cargo#6897) - Default Cargo.toml template provide help for completing the metadata (rust-lang/cargo#6881) - Run 'cargo fmt --all' (rust-lang/cargo#6896) - Refactor command definition (rust-lang/cargo#6894)
Descriptio
This is new Cargo.toml example.
Motivation
close: #6845