ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

rust cargo 一些方便的三方cargo 子命令扩展

2019-06-26 10:38:56  阅读:438  来源: 互联网

标签:三方 cargo Cargo crate rust using your Rust


内容来自cargo 的github wiki,记录下,方便使用

可选的列表

  • cargo-audit - Audit Cargo.lock for crates with security vulnerabilities
  • cargo-asm, cargo-llvm-ir - Shows generates assembly or LLVM IR of Rust code
  • cargo-benchcmp - Compare output of cargo bench output, both runs over time and same benchmarks in multiple modules (e.g. for comparing multiple implementations)
  • cargo-bitbake - Generate Yocto's bitbake recipes from your Cargo.toml
  • cargo-bloat - Find out what takes most of the space in your executable.
  • cargo-cache - Helps you manage the cargo cache (~/.cargo), print sizes and clear directories
  • cargo-check - This is a wrapper around cargo rustc -- -Zno-trans. It can be helpful for running a faster compile if you only need correctness checks.
  • cargo-cook - Cooks your crate (packaging & deploying).
  • clippy - Lint your project using Clippy.
  • cargo-cln - Alternative to cargo-clean, allows running arbitrary commands in addition to wiping out target/ directory.
  • cargo-clone - Fetch source code of a crate
  • cargo-config - Print info about the current crate.
  • cargo-count - counts lines of code in cargo projects, including giving naive unsafe statistics
  • cargo-deadlinks - Check your cargo doc documentation for broken links
  • cargo-do - Run multiple cargo subcommands in sequence (e.g., cargo do clean, build)
  • cargo-deb - Generates & builds Debian packages from cargo projects.
  • cargo-deps - Create dependency diagrams for your Rust projects.
  • cargo-edit - A utility for adding (cargo-add), removing (cargo-rm), and upgrading (cargo-upgrade) cargo dependencies from the command line.
  • cargo-expand - Print the result of macro expansion and #[derive] expansion.
  • rustfmt - Format Rust code according to style guidelines.
  • cargo-fuzz - Command-line wrapper for using libFuzzer
  • cargo-generate - Create a new Rust project by leveraging a pre-existing git repository as a template.
  • cargo-graph - Build GraphViz DOT files of dependency graphs. Unmaintained, consider using cargo-deps.
  • cargo-info - Get crate information and details from crates.io
  • cargo-license - List licensing info for the project's dependencies.
  • cargo-lipo - Automatically create universal libraries for iOS.
  • cargo-make - Rust task runner and build tool.
  • cargo-modules - List a project's modules in a tree-like format.
  • cargo-multi - Run a cargo command on multiple crates.
  • cargo-open - Quickly open your crate in your editor.
  • cargo-outdated - A cargo subcommand for displaying when Rust dependencies are out of date
  • cargo-pkgbuild - Generate an Arch PKGBUILD for your crate.
  • cargo-profiler - A cargo subcommand to profile your applications.
  • cargo-release - Standardizes the release process of a cargo project.
  • cargo-repro - Build and verify byte-for-byte reproducible Rust packages using a Cargo-based workflow (WIP).
  • cargo-rpm - Build RPM releases of Rust projects using cargo.
  • cargo-sandbox - Perform Cargo builds inside of a sandboxed environment (WIP).
  • cargo-script - designed to let people quickly and easily run Rust "scripts" which can make use of Cargo's package ecosystem.
  • cargo-tarpaulin - Code coverage tool for your Rust projects
  • cargo-tomlfmt - Formatting Cargo.toml
  • cargo-tree - List a project's dependencies in a tree-like format. Also supports an "inverted" mode to help determine why a specific crate is being pulled in.
  • cargo-update - Check for cargo installed executables' newer versions and update as needed.
  • cargo-urlcrate - Adds URLs of installing/downloading crates to Cargo output
  • cargo-vendor - Vendors all crates.io dependencies into a local directory using Cargo's support for source replacement
  • cargo-watch - Watch your repo for changes and build automatically.
  • cargo-with - A cargo-subcommand making it easy to run the build artifacts produced by cargo run or cargo build through other tools such as gdbstracevalgrindrr, etc.
  • cargo-x - A very simple third-party cargo subcommand to execute a custom command.

参考资料

https://github.com/rust-lang/cargo/wiki/Third-party-cargo-subcommands

标签:三方,cargo,Cargo,crate,rust,using,your,Rust
来源: https://www.cnblogs.com/rongfengliang/p/11088481.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有