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 ...
随机推荐
- Docker之数据卷(Data Volumes)操作
目的: 前言 Docker宿主机和容器之间文件拷贝 数据卷 数据卷容器 前言 Docker 数据管理 在生产环境中使用 Docker ,往往需要对数据进行持久化,或者需要在多个容器之间进行 数据共享, ...
- SQL Server安装教程(超详细)
具体教程:https://zijian1998.github.io/2018/03/14/Microsoft%20SQL%20Server%202017%E4%B8%8B%E8%BD%BD%E5%AE ...
- prometheus2.0 联邦的配置
参考:https://blog.51cto.com/lee90/2062252 官网对于联邦的介绍:https://prometheus.io/docs/prometheus/latest/feder ...
- ElementUI table中el-table-column怎么设置百分比显示。
看文档找到一种方法,是把 width 换成 min-width ,就支持百分比显示啦 !
- Fiddler-修改请求的上行参数
方法一:对所有的请求打断点 1.rules->automatic Breakpoints->Befor Requests 2.点击选择需要修改的请求 3.选择右侧请求区域的 Inspect ...
- P2801 教主的魔法 (线段树)
题目 P2801 教主的魔法 解析 成天做水题 线段树,第一问区间加很简单 第二问可以维护一个区间最大值和一个区间最小值,若C小于等于区间最小值,就加上区间长度,若C大于区间最大值,就加0 ps:求教 ...
- Excel 2010同时打开2个或多个独立窗口
亲测有效 参考下面的网址 https://jingyan.baidu.com/article/86fae346acca7d3c49121ad4.html 1. 在win+r 输入框里面输入“rege ...
- SpringBoot之多Profile配置
近来在利用闲暇时间巩固下SpringBoot的基本知识,然后自己也做一些笔记,整理下当时所学知识,后面就干脆写到这里来了. 多Profile配置文件 在SpringBoot主配置文件编写的时候,文件名 ...
- Java 之 HTTP 协议
HTTP 协议 一.基础 1.概念 HTTP:Hyper Text Transfer Protocol 超文本传输协议. 传输协议:定义了客户端和服务器端通信时,发送数据的格式. 2.特点 (1)基 ...
- Requirements management in confluence
https://ja.confluence.atlassian.com/doc/blog/2015/08/how-to-document-product-requirements-in-conflue ...