File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ To create a new Rust project,
1111# A binary
1212cargo new foo
1313
14- # OR A library
15- cargo new --lib foo
14+ # A library
15+ cargo new --lib bar
1616```
1717
1818For the rest of this chapter, let's assume we are making a binary, rather than
@@ -21,14 +21,19 @@ a library, but all of the concepts are the same.
2121After the above commands, you should see a file hierarchy like this:
2222
2323``` txt
24- foo
25- ├── Cargo.toml
26- └── src
27- └── main.rs
24+ .
25+ ├── bar
26+ │ ├── Cargo.toml
27+ │ └── src
28+ │ └── lib.rs
29+ └── foo
30+ ├── Cargo.toml
31+ └── src
32+ └── main.rs
2833```
2934
30- The ` main.rs ` is the root source file for your new project -- nothing new there.
31- The ` Cargo.toml ` is the config file for ` cargo ` for this project ( ` foo ` ) . If you
35+ The ` main.rs ` is the root source file for your new ` foo ` project -- nothing new there.
36+ The ` Cargo.toml ` is the config file for ` cargo ` for this project. If you
3237look inside it, you should see something like this:
3338
3439``` toml
You can’t perform that action at this time.
0 commit comments