Skip to content

Guide: Remove "bin" section from Cargo.toml #16215

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

Merged
merged 1 commit into from
Aug 4, 2014

Conversation

cakebaker
Copy link
Contributor

According to the source code cargo new doesn't generate a [[bin]] section in the Cargo.toml, hence removing it from the example.

@cakebaker
Copy link
Contributor Author

One thing I'm not sure about is whether this section should be re-introduced a bit later in the guide to make the guessing game examples compile, or whether the references to the file guessing_game.rs should be changed to main.rs.

@steveklabnik
Copy link
Member

@cakebaker the later ones should be changed to main.rs. Would you like to make a pull for that, or should I?

bors added a commit that referenced this pull request Aug 3, 2014
…=alexcrichton

According to the [source code](https://github.com/rust-lang/cargo/blob/master/src/cargo/ops/cargo_new.rs#L31) <code>cargo new</code> doesn't generate a <code>[[bin]]</code> section in the <code>Cargo.toml</code>, hence removing it from the example.
@bors bors closed this Aug 4, 2014
@bors bors merged commit 7ba9c44 into rust-lang:master Aug 4, 2014
bors added a commit that referenced this pull request Aug 5, 2014
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