官术网_书友最值得收藏!

  • Mastering Rust
  • Rahul Sharma Vesa Kaihlavirta
  • 182字
  • 2021-07-02 13:35:22

cargo-outdated

This command shows the outdated crate dependencies in your Cargo project. This can be installed by running cargo install cargo-outdated. Once installed, you can see the outdated crates (if any) by running cargo outdated within the project directory.

Now, the way these subcommands work seamlessly with Cargo is that developers create these binary crates with a naming convention, such as cargo-[cmd], and when you cargo install that binary crate, Cargo exposes the installed binary to your $PATH variable, which can then be invoked with cargo <cmd> . It's a simple and effective way that's been adopted by Cargo to extend itself with community developed subcommands. There are many other such extensions for Cargo. You can find a list of all community curated subcommands at https://github.com/rust-lang/cargo/wiki/Third-party-cargo-subcommands .

cargo install is also used to install any binary crates or executables/applications that are developed in Rust. They are installed in the /home/<user>/.cargo/bin/ directory by default. We'll use this to install our imgtool application—which we will build at the end of this chapter – to make it available system wide.

主站蜘蛛池模板: 长子县| 呈贡县| 阿城市| 乌拉特前旗| 永昌县| 镶黄旗| 光泽县| 稷山县| 汉沽区| 历史| 泽普县| 靖边县| 华坪县| 乐业县| 黑水县| 郎溪县| 镇赉县| 阜康市| 阳谷县| 舒兰市| 西宁市| 南城县| 民县| 墨脱县| 泉州市| 稻城县| 抚松县| 炉霍县| 苏州市| 钦州市| 沿河| 应城市| 堆龙德庆县| 安国市| 云浮市| 搜索| 福安市| 方山县| 光泽县| 安阳市| 新田县|