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

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.

主站蜘蛛池模板: 滁州市| 宕昌县| 济源市| 永嘉县| 囊谦县| 江都市| 上蔡县| 如皋市| 雅安市| 富锦市| 定日县| 大安市| 黔西县| 张家界市| 宁津县| 龙海市| 深泽县| 阳春市| 天水市| 霍邱县| 枣阳市| 安宁市| 屏东县| 双江| 青龙| 芒康县| 二手房| 盘锦市| 无棣县| 濮阳市| 丹寨县| 九龙坡区| 博湖县| 长顺县| 哈尔滨市| 吴旗县| 龙里县| 郑州市| 平安县| 灵石县| 壶关县|