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

Ch. 7 needs an update regarding rust 1.25 #1267

Closed
ghost opened this issue Apr 3, 2018 · 1 comment
Closed

Ch. 7 needs an update regarding rust 1.25 #1267

ghost opened this issue Apr 3, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 3, 2018

https://doc.rust-lang.org/book/second-edition/ch07-01-mod-and-the-filesystem.html:

We’ll create a skeleton of a library that provides some general networking functionality; we’ll concentrate on the organization of the modules and functions but we won’t worry about what code goes in the function bodies. We’ll call our library communicator. By default, Cargo will create a library unless another type of project is specified: if we omit the --bin option that we’ve been using in all of the chapters preceding this one, our project will be a library:

$ cargo new communicator
$ cd communicator

Rust 1.25 has changed this: rust-lang/cargo#5029

@steveklabnik
Copy link
Member

This has already been fixed, it just needs to ride the trains: https://doc.rust-lang.org/nightly/book/second-edition/ch07-01-mod-and-the-filesystem.html

Thank you!

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

No branches or pull requests

1 participant