Breaking Changes
-
Corrosion now requires CMake 3.22. See also the
v0.4.0 Release notes for more details. -
Removed native tooling and the corresponding option
CORROSION_NATIVE_TOOLING.
Corrosion now always uses pure CMake. -
Fix Corrosion placing artifacts into the wrong directory when:
- using a Multi-Config Generator (e.g Visual Studio or XCode) AND
OUTPUT_DIRECTORY_<CONFIG>is not set ANDOUTPUT_DIRECTORYis set ANDOUTPUT_DIRECTORYdoes not contain a generator expression
Corrosion now places artifacts into a
$<CONFIG>subdirectory of the
specifiedOUTPUT_DIRECTORY. This matches the documented behavior
of CMake for regular CMake targets. (#568).
New features
- Support using the
$<CONFIG>generator expression inOUTPUT_DIRECTORY. #459 - Add
OVERRIDE_CRATE_TYPEoption to corrosion_import_crate, allowing users to override
the crate-types of Rust libraries (e.g. force building as a staticlib instead of an rlib). - Support *-windows-gnullvm targets.
- experimental support in corrosion_install for installing libraries and header files
- Add
CORROSION_TOOLS_RUST_TOOLCHAINcache variable which allows users to select a different
rust toolchain for compiling build-tools used by corrosion (currently cbindgen and cxxbridge).
This mainly allows using a newer toolchain for such build-tools then for the actual project. - Initial support for iOS targets #636