rust cargo 一些方便的三方cargo 子命令扩展
内容来自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 benchoutput, 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 outtarget/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 docdocumentation 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 runorcargo buildthrough other tools such asgdb,strace,valgrind,rr, 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
rust cargo 一些方便的三方cargo 子命令扩展的更多相关文章
- CLI子命令扩展-插件机制实现
开发CLI工具过程中,为了便于扩展,将CLI的实现分为基础功能和扩展功能.基础功能包括init.build.lint.publish等伴随工程从初始化到最终发布到生产环境,也即为CLI 的core.扩 ...
- Rust 中项目构建管理工具 Cargo简单介绍
cargo是Rust内置的项目管理工具.用于Rust 项目的创建.编译.执行,同一时候对项目的依赖进行管理,自己主动推断使用的第三方依赖库,进行下载和版本号升级. 一.查看 cargo 版本号 安装R ...
- 实验四:xl命令的常见子命令以及操作
实验名称: xl命令的常见子命令以及操作 实验环境: 这里我们需要正常安装一台虚拟机,如下图: 我们这里以一台busybox为例,来进行这些简单的常见的操作: 实验要求: 这里我们准备了5个常见操作: ...
- (弃) Keystone CLI_选项与子命令概况
本文档介绍icehouse发行版keystone命令 keystone Command-Line Interface (CLI)提供用于和keystone服务器交互的方便工具,但是该命令行工具逐渐受到 ...
- Shell学习笔记:<<EOF子命令
在shell编程中,“EOF”通常与“<<”结合使用,“<<EOF”表示后续的输入作为子命令或子shell的输入,直到遇到“EOF”,再次返回到主调用shell,可将其理解为分 ...
- 什么是git subcommand,如何创建git子命令?
大多数git用户知道如何在git中创建一个alias以便更便利地使用相关命令.很少有人知道至少不会好好利用的是:你实际上可以为Git创建扩展或者plugin,以便上git完成任何你希望完成的工作.这就 ...
- schtasks /create 计划任务 中文路径 名字都要加“” 子命令 /tn /tr 前面要空格 否则会出错
echo off echo. 清空连接 net use * /del /y echo. 连接 net use \\192.168.1.2\人力资源部\考勤\考勤数据-小莫提供 "密码&quo ...
- Python 命令行之旅:深入 click 之子命令篇
作者:HelloGitHub-Prodesire HelloGitHub 的<讲解开源项目>系列,项目地址:https://github.com/HelloGitHub-Team/Arti ...
- fish shell 自动补全子命令
之前在 「创建 fish shell 自动补全文件」 中介绍了如何创建 fish 的补全文件,实现对命令的友好补全提示.通过形如 complete -c <command> -a [&qu ...
随机推荐
- 国际化地区语言码对照表(i18n)
af 公用荷兰语 af-ZA 公用荷兰语 - 南非 sq 阿尔巴尼亚 sq-AL 阿尔巴尼亚 -阿尔巴尼亚 ar 阿拉伯语 ar-DZ 阿拉伯语 -阿尔及利亚 ar-BH 阿拉伯语 -巴林 ar-EG ...
- centos 6.5安装zabbix 4.4
一.安装环境 本环境,使用单机部署. 操作系统:centos 7.5 x64zabbix-server,Mysql,php,nginx都在同一台服务器.都是使用Yum安装的! 官方安装文档: http ...
- C++11 新特性之智能指针(shared_ptr, unique_ptr, weak_ptr)
这是C++11新特性介绍的第五部分,涉及到智能指针的相关内容(shared_ptr, unique_ptr, weak_ptr). shared_ptr shared_ptr 基本用法 shared_ ...
- HTML5+规范:Geolocation(管理设备位置信息) 定位
Geolocation模块管理设备位置信息,用于获取地理位置信息,如经度.纬度等.通过plus.geolocation可获取设备位置管理对象.虽然W3C已经提供标准API获取位置信息,但在某些平台存在 ...
- 解决使用RabbitTemplate操作RabbitMQ,发生The channelMax limit is reached. Try later.问题
使用RabbitTemplate操纵RabbitMQ,每个RabbitTemplate等于一个connection,每个connection最多支持2048个channel,当hannel达到2048 ...
- JS中的逻辑运算符&&、||
原文:JS中的逻辑运算符&&.|| 1.JS中的||符号: 运算方法: 只要"||"前面为false,不管"||"后面是true还是false, ...
- ArcGIS Engine中C#开发不能引用ESRI.ArcGIS.AxControls问题
问题:ArcGIS Engine中C#开发不能引用ESRI.ArcGIS.AxControls问题 解决方法:将这里的特定版本改成“False”即可.
- JavaScript数值类型保留显示小数方法
<script type="text/javascript"> //保留两位小数 //功能:将浮点数四舍五入,取小数点后2位 function toDecimal(x) ...
- sparksql读取hive数据报错:java.lang.RuntimeException: serious problem
问题: Caused by: java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: ...
- Python基础知识(五)------字典
Python基础知识(四)------字典 字典 一丶什么是字典 dict关键字 , 以 {} 表示, 以key:value形式保存数据 ,每个逗号分隔 键: 必须是可哈希,(不可变的数据类型 ...