corrosion
« Back to VersTracker
Description:
Easy Rust and C/C++ Integration
Type: Formula  |  Latest Version: 0.6.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust cmake cpp build-system ffi
Install: brew install corrosion
About:
Corrosion is a CMake-based build system integrator for Rust projects. It automatically generates CMake targets for Rust crates, enabling seamless linking of Rust libraries into C++ applications. This tool simplifies the build process by allowing developers to manage dependencies and build configurations entirely within CMake.
Key Features:
  • Automatic CMake target generation for Rust crates
  • Support for both static and dynamic library linking
  • Seamless integration with existing CMake build systems
  • Cross-platform compatibility
Use Cases:
  • Embedding Rust libraries into existing C++ applications
  • Gradually migrating C++ codebases to Rust
  • Creating mixed-language projects with unified build configuration
Alternatives:
  • cxx – Focuses on C++/Rust interop at the API level rather than build system integration
  • cbindgen – Generates C headers from Rust code but doesn't integrate with CMake build process
License: MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 12, 2025 5:41am 0 VERSION_BUMP 84eff852
Dec 22, 2024 6:49pm 0 VERSION_BUMP 16fd656f