]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/src/ch14-04-installing-binaries.md
New upstream version 1.43.0+dfsg1
[rustc.git] / src / doc / book / src / ch14-04-installing-binaries.md
index a654a371ac5c9bc6b6b587b6043e7e4f8fc165d1..6b2f58ba8ca3cf21396b36ceded6d550aea96bce 100644 (file)
@@ -21,17 +21,24 @@ For example, in Chapter 12 we mentioned that there’s a Rust implementation of
 the `grep` tool called `ripgrep` for searching files. If we want to install
 `ripgrep`, we can run the following:
 
+<!-- manual-regeneration
+cargo install something you don't have, copy relevant output below
+-->
+
 ```text
 $ cargo install ripgrep
-Updating registry `https://github.com/rust-lang/crates.io-index`
- Downloading ripgrep v0.3.2
- --snip--
-   Compiling ripgrep v0.3.2
-    Finished release [optimized + debuginfo] target(s) in 97.91 secs
+    Updating crates.io index
+  Downloaded ripgrep v11.0.2
+  Downloaded 1 crate (243.3 KB) in 0.88s
+  Installing ripgrep v11.0.2
+--snip--
+   Compiling ripgrep v11.0.2
+    Finished release [optimized] target(s) in 3m 10s
   Installing ~/.cargo/bin/rg
+   Installed package `ripgrep v11.0.2` (executable `rg`)
 ```
 
-The last line of the output shows the location and the name of the installed
-binary, which in the case of `ripgrep` is `rg`. As long as the installation
-directory is in your `$PATH`, as mentioned previously, you can then run `rg
---help` and start using a faster, rustier tool for searching files!
+The second-to-last line of the output shows the location and the name of the
+installed binary, which in the case of `ripgrep` is `rg`. As long as the
+installation directory is in your `$PATH`, as mentioned previously, you can
+then run `rg --help` and start using a faster, rustier tool for searching files!