@@ -63,18 +63,17 @@ version = "0.0.1"
63
63
authors = [
" Your name <[email protected] >" ]
64
64
```
65
65
66
- This file is in the [ TOML] [ toml ] format. Let’s let it explain itself to you:
66
+ This file is in the [ TOML] [ toml ] format. TOML is similar to INI, but has some
67
+ extra goodies. According to the Rust docs,
67
68
68
69
> TOML aims to be a minimal configuration file format that's easy to read due
69
70
> to obvious semantics. TOML is designed to map unambiguously to a hash table.
70
71
> TOML should be easy to parse into data structures in a wide variety of
71
72
> languages.
72
73
73
- TOML is very similar to INI, but with some extra goodies.
74
-
75
74
[ toml ] : https://github.com/toml-lang/toml
76
75
77
- Once you have this file in place, we should be ready to build! Try this :
76
+ Once you have this file in place, we should be ready to build! To do so, run :
78
77
79
78
``` bash
80
79
$ cargo build
@@ -83,7 +82,7 @@ $ ./target/debug/hello_world
83
82
Hello, world!
84
83
```
85
84
86
- Bam! We build our project with ` cargo build ` , and run it with
85
+ Bam! We built our project with ` cargo build ` , and ran it with
87
86
` ./target/debug/hello_world ` . We can do both in one step with ` cargo run ` :
88
87
89
88
``` bash
@@ -104,9 +103,9 @@ Hello, world!
104
103
```
105
104
106
105
This hasn’t bought us a whole lot over our simple use of ` rustc ` , but think
107
- about the future: when our project gets more complex, we would need to do more
106
+ about the future: when our project gets more complex, we need to do more
108
107
things to get all of the parts to properly compile. With Cargo, as our project
109
- grows, we can just ` cargo build ` , and it’ll work the right way.
108
+ grows, we can just run ` cargo build ` , and it’ll work the right way.
110
109
111
110
When your project is finally ready for release, you can use
112
111
` cargo build --release ` to compile your project with optimizations.
@@ -119,7 +118,7 @@ name = "hello_world"
119
118
version = " 0.0.1"
120
119
```
121
120
122
- This file is used by Cargo to keep track of dependencies in your application.
121
+ The ` Cargo.lock ` is used by Cargo to keep track of dependencies in your application.
123
122
Right now, we don’t have any, so it’s a bit sparse. You won't ever need
124
123
to touch this file yourself, just let Cargo handle it.
125
124
0 commit comments