From eee8170f444987fcd5db08aed3c24268b5abb870 Mon Sep 17 00:00:00 2001 From: darkicewolf50 Date: Thu, 27 Feb 2025 11:54:21 -0700 Subject: [PATCH] finished ch14.5 and finished ch14 --- Extending Cargo.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Extending Cargo.md b/Extending Cargo.md index d8489fd..861f3ad 100644 --- a/Extending Cargo.md +++ b/Extending Cargo.md @@ -1 +1,8 @@ -# Extending Cargo with Custom Commnads \ No newline at end of file +# Extending Cargo with Custom Commnads +The design of Cargo is such that you can extend it with new subcommands without having to modify Cargo. + +If a binary in your `$PATH` is named `cargo-somethig`, you can run it as if it was a Cargo subcommand by running `cargo something`. + +Custom commands like this are also listed when you run `cargo --list` + +Using `cargo install` to install extensions and then run them just like built-in Cargo tools is a very convenient benefit of Cargo's design. \ No newline at end of file