Skip to content

Releases: corrosion-rs/corrosion

v0.5.2

24 Apr 18:03
Compare
Choose a tag to compare

This is a bugfix release, backporting selected fixes from the master branch.

Fixes

  • Leave choosing the MSVC runtime up to the C/C++ CMake code (#573, #566)

v0.5.0

24 Apr 17:59
Compare
Choose a tag to compare

Note: I previously forgot to publish v0.5.0 as a Github release, so the github date of this release is not accurate. View the tag instead.

Breaking Changes

  • Dashes (-) in names of imported CMake library targets are now replaced with underscores (_).
    See issue #501 for details. Users on older Corrosion versions will experience the same
    change when using Rust 1.79 or newer. bin targets are not affected by this change.

v0.5.1

29 Dec 14:23
Compare
Choose a tag to compare

What's Changed

  • fix: Update FindRust to work with rustup v1.28.0 by @rami3l in #591

Updating is recommended to all users and is required once the new rustup version is released.

v0.4.10

11 May 10:25
Compare
Choose a tag to compare

New features

  • corrosion_experimental_cbindgen() can now be called multiple times on the same Rust target,
    as long as the output header name differs. This may be useful to generate separate C and C++
    bindings. #507
  • If corrosion_link_libraries() is called on a Rust static library target, then
    target_link_libraries() is called to propagate the dependencies to C/C++ consumers.
    Previously a warning was emitted in this case and the arguments ignored. #506

Fixes

  • Combine -framework flags on macos to avoid linker deduplication errors #455
  • corrosion_experimental_cbindgen() will now correctly use the package name, instead of assuming that
    the package and crate name are identical. (11e27c)
  • Set the AR_<triple> variable for cc-rs (except for msvc targets) #456
  • Fix hostbuild when cross-compiling to windows #477
  • Consider vworks executable suffix #504
  • corrosion_experimental_cbindgen() now forwards the Rust target-triple (e.g. aarch64-unknown-linux-gnu)
    to cbindgen via the TARGET environment variable. The hostbuild property is considered. #507
  • Fix linking errors with Rust >= 1.79 and -msvc targets. #511

v0.4.9

01 May 19:10
Compare
Choose a tag to compare

New Features

  • Automatically detect Rust target for OpenHarmony (#510).

Fixes

  • Make find_package portable (#509).

v0.4.8

05 Apr 14:00
d5bdbfa
Compare
Choose a tag to compare

Fixes

  • Fix an internal error when passing both the PROFILE and CRATES option to
    corrosion_import_crate() (#496).

v0.4.7

19 Jan 17:03
Compare
Choose a tag to compare

Release Notes

Fixes

  • The C/C++ compiler passed from corrosion to cc-rs can now be overridden by users setting
    CC_<target> (e.g. CC_x86_64-unknown-linux-gnu=/path/to/my-compiler) environment variables (#475).

v0.4.6

17 Jan 16:33
Compare
Choose a tag to compare

Release notes

Fixes

  • Fix building of hostbuild executables when cross-compiling from non-windows to windows targets.
    (Only with CMake >= 3.19).

v0.4.5

30 Nov 05:14
be76480
Compare
Choose a tag to compare

Release notes

Fixes

  • Fix hostbuild executables when cross-compiling on windows to non-windows targets (Only with CMake >= 3.19).

v0.4.4

06 Oct 06:57
Compare
Choose a tag to compare

Release notes

Fixes

  • Add chimera ([#445]) and unikraft ([#446]) to the list of known vendors