Add `--path .` to cargo install commands.

Changing `cargo install` to `cargo install --path .` prevents the following error:

<span style="color: red;">error:</span> Using `cargo install` to install the binaries for the package in current working directory is no longer supported, use `cargo install --path .` instead. Use `cargo build` if you want to simply build the package.
This commit is contained in:
Liam Beckman 2019-07-31 14:49:25 -07:00 committed by GitHub
parent e512850c13
commit e48fed74bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ Now we've got the basics running, we want to actually use it. First, install the
program.
```shell
$ cargo install
$ cargo install --path .
```
Then `cd` to the particular book you'd like to count the words of and update its
@ -304,7 +304,7 @@ like this:
Now, if we reinstall the backend and build a book,
```shell
$ cargo install --force
$ cargo install --path . --force
$ mdbook build /path/to/book
...
2018-01-16 21:21:39 [INFO] (mdbook::renderer): Invoking the "wordcount" renderer