From e48fed74bf1de548175981f7008f2ecf1f046306 Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Wed, 31 Jul 2019 14:49:25 -0700 Subject: [PATCH] Add `--path .` to cargo install commands. Changing `cargo install` to `cargo install --path .` prevents the following error: error: 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. --- book-example/src/for_developers/backends.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book-example/src/for_developers/backends.md b/book-example/src/for_developers/backends.md index f8ddb0f3..b72cfc7c 100644 --- a/book-example/src/for_developers/backends.md +++ b/book-example/src/for_developers/backends.md @@ -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