macOS
brew install cargo-carefullocal Homebrew formula metadata
安装
brew install cargo-carefullocal Homebrew formula metadata
nix profile install nixpkgs#cargo-carefulnixpkgs package indexes · pkgs/by-name/ca/cargo-careful/package.nix · 来源: api.github.com
概览
Execute Rust code carefully, with extra checking along the way
历史
cargo-careful is a Cargo subcommand for running Rust programs and tests with extra nightly-only runtime checks, a standard library built with debug assertions, and optional sanitizer support.
Ralf Jung's cargo-careful repository and first crates.io release both appeared in September 2022. The README describes it as a way to run Rust code extra carefully by opting into checks that help detect undefined behavior.
The tool builds or uses a checked standard library and passes rustc flags that enable stricter runtime behavior, including pointer alignment and null checks, collection consistency checks, strict initialization checks, and extra const-evaluation UB checks. Later versions also document sanitizer support and Apple Main Thread Checker integration on Apple platforms.
cargo-careful is more specialized than general debugging Cargo plugins, but it fills an important space between ordinary `cargo test` and exhaustive interpreters. Crates.io reports more than 169,000 downloads, while the input records Homebrew and Nix packaging.
Its author and positioning connect it to Rust's unsafe-code verification culture. The README explicitly compares it with Miri: cargo-careful is less exhaustive but faster, supports arbitrary system and C FFI calls, and works on code Miri may not be able to run.
Users install it with `cargo install cargo-careful` and run commands such as `cargo +nightly careful test` or `cargo +nightly careful run`. The README says all `cargo test` and `cargo run` flags are supported and that a recent nightly toolchain is required.
On first use it may need the `rustc-src` rustup component to perform setup. It also honors common Rust flag sources such as `CARGO_ENCODED_RUSTFLAGS`, `RUSTFLAGS`, and Cargo's `build.rustflags`, and it sets a `cfg(careful)` configuration flag for conditional code.
cargo-careful matters to package nerds because it packages unstable compiler and standard-library checking behavior into a repeatable Cargo command. It gives library maintainers a way to add stronger runtime checking to test workflows without rewriting tests for a separate interpreter.
It is also a good example of Cargo as a safety-tool host: the package itself is small, but it coordinates rustup components, nightly rustc flags, standard-library rebuilding, sanitizers, and target-specific platform diagnostics.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-careful | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/RalfJung/cargo-careful
安装元数据
| 软件包键 | brew:cargo-careful |
|---|---|
| 版本 | 0.4.10 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cargo-careful |
| 主页 | https://github.com/RalfJung/cargo-careful |
| 仓库 | https://github.com/RalfJung/cargo-careful |
| 上游文档 | https://github.com/RalfJung/cargo-careful#readme |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/RalfJung/cargo-careful/archive/refs/tags/v0.4.10.tar.gz |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-careful |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cargo-careful
nix profile install nixpkgs#cargo-careful来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.