# Install c2rust with Cargo

C to Rust translation, refactoring, and cross-checking. Version 0.22.1 via Cargo; verified 2026-02-11. Also installable with apk: sudo apk add c2rust.

## Install

```sh
sudo av install cargo:c2rust
```

Additional install commands:

### Portable and language managers

- Cargo (100%):

```sh
cargo install c2rust
```

  Evidence: local crates.io package metadata

## Package facts

- **Package key:** cargo:c2rust
- **Package manager:** Cargo
- **Package manager page:** <https://crates.io/crates/c2rust>
- **Version:** 0.22.1
- **Source summary:** C to Rust translation, refactoring, and cross-checking
- **Homepage:** <https://c2rust.com/>
- **Repository:** <https://github.com/immunant/c2rust/>
- **License:** BSD-3-Clause
- **Source archive:** <https://static.crates.io/crates/c2rust/c2rust-0.22.1.crate>
- **Published:** 2026-02-11 09:35:53.752839+00
- **Last updated:** 2026-02-11 09:35:53.752839+00
- **Generated:** 2026-09-19T06:45:57+00:00

## Executables

- c2rust (binary): Declared by crates.io version metadata.
- c2rust-transpile (binary): Declared by crates.io version metadata.

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-09-19
- Package-manager version: 0.22.1

## Security Notes

No matching local secret-handling manifest was found for c2rust. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** crates.io database dump
- **Crate ID:** 90,865
- **Crate Size:** 22,250
- **Edition:** 2021
- **Executable Intent:** Intent: public_cli, Signals: crate has no library target
- **Has Lib:** no
- **Num Versions:** 17
- **Recent Download Window Days:** 90
- **Version ID:** 2,017,750

## Other Package-Manager Records

- apk - c2rust - 0.22.1-r0: normalized package name match | Alpine Linux edge package indexes: c2rust from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Transpile C99-compliant code to (unsafe) Rust code | https://github.com/immunant/c2rust


## Related links

- [c2rust](https://pkg.so/brew/c2rust/) - Same normalized package name exists in another local package ecosystem.

## Sources

- crates.io package index
- external package-manager database matches
- cross-ecosystem install command graph
