This is the first release of corrosion after it was moved to the new corrosion-rs organization.
Since there are no previous releases, this is not a complete changelog but only lists changes since
September 2021.
New features
- Add --profile support for rust >= 1.57:
Allows users to specify a custom cargo profile withcorrosion_import_crate(... PROFILE <profilename>). - Add support for specifying per-target Rustflags:
Rustflags can be added viacorrosion_add_target_rustflags(<target_name> [rustflags1...]) - Add
Rust_IS_NIGHTLYandRust_LLVM_VERSIONvariables:
This may be useful if you want to conditionally enabled features when using a nightly toolchain or a specific LLVM Version. - Let
FindRustfail gracefully if rustc is not found:
This allows usingFindRustin a more general setting (without corrosion). - Add support for cargo feature selection:
See the README for details on how to select features.
Fixes
- Fix the cargo-clean target
- Fix #84: CorrosionConfig.cmake looks in wrong place for Corrosion::Generator when CMAKE_INSTALL_LIBEXEC is an absolute path
- Fix #116: (Option CORROSION_INSTALL_EXECUTABLE not working)
- Fix building on Windows with rust >= 1.57
Known issues:
- Corrosion is currently not working on macos-11 and newer. See issue #104.
Contributions are welcome.