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 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 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 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 install
ed 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
orcargo build
through 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 ...
随机推荐
- 【ElasticSearch】查询优化
一.背景 每周统计接口耗时,发现耗时较长的前几个接口tp5个9都超过了1000ms. 经过分析慢查询的原因是ES查询耗时太长导致的 二.设计方案 1.问题定位 查询功能使用不当导致慢查询 索引设计存在 ...
- 【开发工具】- Windows下多个jdk版本切换
一.直接安装jdk,如图我安装了JDK6.JDK7和JDK8三个版本: 二.在安装JDK8后需要在 C:\Windows\System32 该目录下删除 java.exe 和 javaw.exe两个文 ...
- ES6 新增集合----- Set 和Map
Sets 和数组一样,都是一些有序值的的集合,但是Sets 和数组又有所不同,首先Sets 集合中不能存有相同的值,如果你向Sets 添加重复的值,它会忽略掉, 其次Sets 集合的作用也有所不同,它 ...
- MySQL 统计上一周从周一到周日的用户
这个功能按理说很常见,奇怪的是很难搜索到一个合适的.稍微整理了下,具体的就不展开了,注意这个表中的时间为毫秒,这条语句拷贝复制就能用.照顾大部分的无脑码农. SELECT case when FROM ...
- JavaWeb 之 Filter:过滤器
一.Filter 概述 1.概念 web 中的过滤器:当访问服务器的资源时,过滤器可以将请求拦截下来,完成一些特殊的功能. 2.作用 一般用于完成通用的操作.如:登录验证.统一编码处理.敏感字符等功能 ...
- 【BBED】编译及基本命令(1)
[BBED]编译及基本命令(1) 一.1 BLOG文档结构图 一.2 前言部分 一.2.1 导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你 ...
- JavaScript: 详解正则表达式之二
在上一篇文章中我们讲了正则表达式的基本用法,接下来博主想聊聊其中的细节,今天就从正则修饰符开始吧. 正则修饰符又称为正则标记(flags),它会对正则的匹配规则做限定,进而影响匹配的最终结果.在上次的 ...
- VMware 设置虚拟机Centos 上网的两种方式
能在VMware上面安装虚拟机,不可能说是不让链接外网,只是在自己电脑上玩玩就可以了.因为学习需要,经常在自己笔记本上面搭建虚拟机,我经常使用的两种上网方式 一 NET方式上网 设置VMware Ne ...
- 关于git报 warning: LF will be replaced by CRLF in README.md.的警告的解决办法
在使用git把代码上传至仓库时,会有下面这种警告: 虽然说是警告,但是看着真的很碍眼啊,特别是有强迫症的人就更难受了. 输入这一行命令就可以完美解决了 git config core.autocrlf ...
- CSS的一个小bug,Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
在vue重新渲染页面的时候,报了一个错误: 翻译了报错信息后,Gradient has outdated direction syntax. New syntax is like to left in ...