CMD + K

corrosion

Community

Marrying Rust and CMake - Easy Rust and C/C++ Integration!

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::corrosion

Usage Tracking

0.6.1
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

Corrosion, formerly known as cmake-cargo, is a tool for integrating Rust into an existing CMake project. Corrosion is capable of automatically importing executables, static libraries, and dynamic libraries from a Rust package or workspace as CMake targets.

The imported static and dynamic library types can be linked into C/C++ CMake targets using the usual CMake functions such as [target_link_libraries()]. For rust executables and dynamic libraries corrosion provides a corrosion_link_libraries helper function to conveniently add the necessary flags to link C/C++ libraries into the rust target.

About

Summary

Marrying Rust and CMake - Easy Rust and C/C++ Integration!

Last Updated

Feb 19, 2026 at 19:43

License

MIT

Supported Platforms

macOS-64
linux-64
macOS-arm64
win-64
linux-aarch64
linux-ppc64le