File tree 1 file changed +13
-8
lines changed 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,
11
11
# A binary
12
12
cargo new foo
13
13
14
- # OR A library
15
- cargo new --lib foo
14
+ # A library
15
+ cargo new --lib bar
16
16
```
17
17
18
18
For 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.
21
21
After the above commands, you should see a file hierarchy like this:
22
22
23
23
``` 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
28
33
```
29
34
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
32
37
look inside it, you should see something like this:
33
38
34
39
``` toml
You can’t perform that action at this time.
0 commit comments