github corrosion-rs/corrosion v0.6.0

latest releases: v0.6.1, v0.6
5 months ago

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:

    1. using a Multi-Config Generator (e.g Visual Studio or XCode) AND
    2. OUTPUT_DIRECTORY_<CONFIG> is not set AND
    3. OUTPUT_DIRECTORY is set AND
    4. OUTPUT_DIRECTORY does not contain a generator expression

    Corrosion now places artifacts into a $<CONFIG> subdirectory of the
    specified OUTPUT_DIRECTORY. This matches the documented behavior
    of CMake for regular CMake targets. (#568).

New features

  • Support using the $<CONFIG> generator expression in OUTPUT_DIRECTORY. #459
  • Add OVERRIDE_CRATE_TYPE option 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_TOOLCHAIN cache 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

Don't miss a new corrosion release

NewReleases is sending notifications on new releases.