Releases: corrosion-rs/corrosion
Releases · corrosion-rs/corrosion
v0.5.0
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.4.10
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 forcc-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 theTARGET
environment variable. Thehostbuild
property is considered. #507- Fix linking errors with Rust >= 1.79 and
-msvc
targets. #511