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
-frameworkflags 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 theTARGETenvironment variable. Thehostbuildproperty is considered. #507- Fix linking errors with Rust >= 1.79 and
-msvctargets. #511