-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Clarifications for Hello, Cargo! #27397
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
Conversation
Just a few minor changes to clarify a few things for someone new to Rust and Cargo.
(rust_highfive has picked a reviewer for you, use r? to override) |
Guessing Game states that "Rust only imports a few things into every program, the ‘prelude’". That isn't strictly true. That is all it imports by default and the change clarifies that point.
do that part first: | ||
To Cargo-ify our project, we need to do three things: Make a `Cargo.toml` | ||
configuration file, put our source file in the right place, and get rid of the | ||
old `main.exe`. Let's do that part first: |
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.
there are two spaces between 'old' and 'main.exe', and it should say something like 'main or main.exe', to cover all platforms
All requested updated completed apart from issue wrt "This convention ..." |
r=me after the last two bits :) |
Changes as requested. |
@bors: r+ rollup |
📌 Commit c54df0e has been approved by |
Thanks so much! |
⌛ Testing commit c54df0e with merge 934e078... |
Clarifications for those new to Rust and Cargo: * It's a good idea to get rid of the original `main.exe` in project root * Slight clarification on the use of `main.rs` vs `lib.rs` * Clarify that the TOML file needs to be in project root
⛄ The build was interrupted to prioritize another pull request. |
Clarifications for those new to Rust and Cargo:
main.exe
in project rootmain.rs
vslib.rs