Marrying Rust and CMake - Easy Rust and C/C++ Integration!
-
) 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.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
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
-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)AR_<triple>
variable for cc-rs
(except for msvc targets) #456
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
-msvc
targets. #511
PROFILE
and CRATES
option to
corrosion_import_crate()
(#496).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).Fixes