Skip to content

Commit 6b26aae

Browse files
Use new Cargo starting version number
1 parent c9284ce commit 6b26aae

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/doc/guide.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Once you have this file in place, we should be ready to build! Try this:
342342

343343
```{bash}
344344
$ cargo build
345-
Compiling hello_world v0.1.0 (file:///home/yourname/projects/hello_world)
345+
Compiling hello_world v0.0.1 (file:///home/yourname/projects/hello_world)
346346
$ ./target/hello_world
347347
Hello, world!
348348
```
@@ -486,7 +486,7 @@ You can use `cargo build` on the command line to build it. You'll get a warning,
486486
but it will still print "Hello, world!":
487487

488488
```{ignore,notrust}
489-
Compiling hello_world v0.1.0 (file:///home/you/projects/hello_world)
489+
Compiling hello_world v0.0.1 (file:///home/you/projects/hello_world)
490490
src/hello_world.rs:2:9: 2:10 warning: unused variable: `x`, #[warn(unused_variable)] on by default
491491
src/hello_world.rs:2 let x: int;
492492
^
@@ -508,7 +508,7 @@ And try to build it. You'll get an error:
508508

509509
```{bash}
510510
$ cargo build
511-
Compiling hello_world v0.1.0 (file:///home/you/projects/hello_world)
511+
Compiling hello_world v0.0.1 (file:///home/you/projects/hello_world)
512512
src/hello_world.rs:4:39: 4:40 error: use of possibly uninitialized variable: `x`
513513
src/hello_world.rs:4 println!("The value of x is: {}", x);
514514
^
@@ -2279,7 +2279,7 @@ print an error message and return. Let's give this a shot:
22792279

22802280
```{notrust,ignore}
22812281
$ cargo build
2282-
Compiling guessing_game v0.1.0 (file:///home/you/projects/guessing_game)
2282+
Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game)
22832283
$ ./target/guessing_game
22842284
Guess the number!
22852285
The secret number is: 17
@@ -2671,7 +2671,7 @@ Let's double check our work by compiling:
26712671

26722672
```{bash,ignore}
26732673
$ cargo build
2674-
Compiling modules v0.1.0 (file:///home/you/projects/modules)
2674+
Compiling modules v0.0.1 (file:///home/you/projects/modules)
26752675
$ ./target/modules
26762676
Hello, world!
26772677
```
@@ -2732,7 +2732,7 @@ mod hello {
27322732
It gives an error:
27332733

27342734
```{notrust,ignore}
2735-
Compiling modules v0.1.0 (file:///home/you/projects/modules)
2735+
Compiling modules v0.0.1 (file:///home/you/projects/modules)
27362736
src/main.rs:2:5: 2:23 error: function `print_hello` is private
27372737
src/main.rs:2 hello::print_hello();
27382738
^~~~~~~~~~~~~~~~~~
@@ -2756,7 +2756,7 @@ This will work:
27562756

27572757
```{notrust,ignore}
27582758
$ cargo build
2759-
Compiling modules v0.1.0 (file:///home/you/projects/modules)
2759+
Compiling modules v0.0.1 (file:///home/you/projects/modules)
27602760
$
27612761
```
27622762

@@ -2766,7 +2766,7 @@ Try it out:
27662766

27672767
```{notrust,ignore}
27682768
$ cargo run
2769-
Compiling modules v0.1.0 (file:///home/steve/tmp/modules)
2769+
Compiling modules v0.0.1 (file:///home/steve/tmp/modules)
27702770
Running `target/modules`
27712771
Hello, world!
27722772
$
@@ -2816,7 +2816,7 @@ This doesn't _quite_ work yet. Try it:
28162816

28172817
```{notrust,ignore}
28182818
$ cargo build
2819-
Compiling modules v0.1.0 (file:///home/you/projects/modules)
2819+
Compiling modules v0.0.1 (file:///home/you/projects/modules)
28202820
/home/you/projects/modules/src/lib.rs:2:5: 4:6 warning: code is never used: `print_hello`, #[warn(dead_code)] on by default
28212821
/home/you/projects/modules/src/lib.rs:2 pub fn print_hello() {
28222822
/home/you/projects/modules/src/lib.rs:3 println!("Hello, world!");
@@ -2852,7 +2852,7 @@ And everything should work:
28522852

28532853
```{notrust,ignore}
28542854
$ cargo run
2855-
Compiling modules v0.1.0 (file:///home/you/projects/modules)
2855+
Compiling modules v0.0.1 (file:///home/you/projects/modules)
28562856
Running `target/modules`
28572857
Hello, world!
28582858
```
@@ -2918,7 +2918,7 @@ This should all compile as usual:
29182918

29192919
```{notrust,ignore}
29202920
$ cargo build
2921-
Compiling modules v0.1.0 (file:///home/you/projects/modules)
2921+
Compiling modules v0.0.1 (file:///home/you/projects/modules)
29222922
$
29232923
```
29242924

@@ -3090,7 +3090,7 @@ And try it out:
30903090

30913091
```{notrust,ignore}
30923092
$ cargo run
3093-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3093+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
30943094
Running `target/testing`
30953095
Hello, world!
30963096
$
@@ -3123,7 +3123,7 @@ it `false`, so this test should fail. Let's try it!
31233123

31243124
```{notrust,ignore}
31253125
$ cargo test
3126-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3126+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
31273127
/home/you/projects/testing/src/main.rs:1:1: 3:2 warning: code is never used: `main`, #[warn(dead_code)] on by default
31283128
/home/you/projects/testing/src/main.rs:1 fn main() {
31293129
/home/you/projects/testing/src/main.rs:2 println!("Hello, world");
@@ -3156,7 +3156,7 @@ Lots of output! Let's break this down:
31563156

31573157
```{notrust,ignore}
31583158
$ cargo test
3159-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3159+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
31603160
```
31613161

31623162
You can run all of your tests with `cargo test`. This runs both your tests in
@@ -3231,7 +3231,7 @@ And then try to run our tests again:
32313231

32323232
```{notrust,ignore}
32333233
$ cargo test
3234-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3234+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
32353235
/home/you/projects/testing/src/main.rs:1:1: 3:2 warning: code is never used: `main`, #[warn(dead_code)] on by default
32363236
/home/you/projects/testing/src/main.rs:1 fn main() {
32373237
/home/you/projects/testing/src/main.rs:2 println!("Hello, world");
@@ -3270,7 +3270,7 @@ With this attribute, we won't get the warning:
32703270

32713271
```{notrust,ignore}
32723272
$ cargo test
3273-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3273+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
32743274
32753275
running 0 tests
32763276
@@ -3299,7 +3299,7 @@ And try to run the test:
32993299

33003300
```{notrust,ignore}
33013301
$ cargo test
3302-
Compiling testing v0.1.0 (file:///home/youg/projects/testing)
3302+
Compiling testing v0.0.1 (file:///home/youg/projects/testing)
33033303
/home/youg/projects/testing/tests/lib.rs:3:18: 3:38 error: unresolved name `add_three_times_four`.
33043304
/home/youg/projects/testing/tests/lib.rs:3 let result = add_three_times_four(5i);
33053305
^~~~~~~~~~~~~~~~~~~~
@@ -3358,7 +3358,7 @@ Let's give it a run:
33583358

33593359
```{ignore,notrust}
33603360
$ cargo test
3361-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3361+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
33623362
33633363
running 0 tests
33643364
@@ -3398,7 +3398,7 @@ If you run `cargo test`, you should get the same output:
33983398

33993399
```{ignore,notrust}
34003400
$ cargo test
3401-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3401+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
34023402
34033403
running 0 tests
34043404
@@ -3442,7 +3442,7 @@ fn test_add_three() {
34423442
We'd get this error:
34433443

34443444
```{notrust,ignore}
3445-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3445+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
34463446
/home/you/projects/testing/tests/lib.rs:3:5: 3:24 error: function `add_three` is private
34473447
/home/you/projects/testing/tests/lib.rs:3 use testing::add_three;
34483448
^~~~~~~~~~~~~~~~~~~
@@ -3485,7 +3485,7 @@ Let's give it a shot:
34853485

34863486
```{ignore,notrust}
34873487
$ cargo test
3488-
Compiling testing v0.1.0 (file:///home/you/projects/testing)
3488+
Compiling testing v0.0.1 (file:///home/you/projects/testing)
34893489
34903490
running 1 test
34913491
test test::test_times_four ... ok

0 commit comments

Comments
 (0)