v0.4 beta 1 - Please test and report issues #389
jschwe
announced in
Announcements
Replies: 3 comments 6 replies
-
At least, our CI passed with v0.4 beta: slint-ui/slint#2731 🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Our ci using cxxbridge function works like a charm on Ubuntu (ninja) and windows (msvc) |
Beta Was this translation helpful? Give feedback.
2 replies
-
We're getting errors. We have CMake 3.25 installed, but the error tells us that we need to have CMake 3.20 or higher. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
0.4.0-beta1 (2023-05-10)
Please test and provide feedback for issues you encounter. We are especially interested in receiving feedback for the things in the
experimental
section of the release notes, especially the cbindgen and cxxbridge integration.Changes compared to v0.3.5:
Breaking Changes
This was previously announced in the 0.3.0 release notes and is the same
requirement as for the other Multi-Config Generators.
corrosion_set_linker_language()
will now raise an error when called and may be removed without further
notice in future stable releases. Use
corrosion_set_linker()
instead.The detection does not require an enabled language anymore and will always fall back
to the default host target triple. A warning is issued if target triple detection failed.
Potentially Breaking Changes
IMPORTED_NO_SONAME
property for shared rust libraries, since bydefault they won't have an
soname
field.If you add a rustflag like
-Clink-arg=-Wl,-soname,libmycrate.so
in your project,you should set this property to false on the shared rust library.
Rust
staticlib
targets into C/C++ targets. The previous mechanism contained a hardcoded list.The new mechanism asks
rustc
which libraries are needed at minimum for a giventarget triple (with
std
support). This should not be a breaking change, but if youdo encounter a new linking issue when upgrading with
staticlib
targets, please open anissue.
New features
corrosion_import_crate()
has two new optionsLOCKED
andFROZEN
which pass the--locked
and--frozen
flags to all invocations of cargo.FindRust
now provides cache variables containing information on the default hosttarget triple:
Rust_CARGO_HOST_ARCH
Rust_CARGO_HOST_VENDOR
Rust_CARGO_HOST_OS
Rust_CARGO_HOST_ENV
Other changes
no longer built and installed by default.
options for a Rust static library.
C
language when CMake is in crosscompiling mode andno languages where previously enabled. This is not considered a breaking change.
corrosion_import_crate()
now warns about unexpected arguments.Fixes
dev
profile is explicitly set by the user.Experimental status (may be changed or removed before a stable release)
FindRust
in the following cache variableswhich contain a list.
Rust_RUSTUP_TOOLCHAINS
: List of toolchains namesRust_RUSTUP_TOOLCHAINS_VERSION
: List ofrustc
version of the toolchainsRust_RUSTUP_TOOLCHAINS_RUSTC_PATH
: List of the path torustc
Rust_RUSTUP_TOOLCHAINS_CARGO_PATH
: List of the path tocargo
. Entries may beNOTFOUND
if cargois not available for that toolchain.
INTERFACE_CORROSION_RUSTC
andINTERFACE_CORROSION_CARGO
, which maybe set to paths to
rustc
andcargo
respectively to override the toolchain for a specifictarget.
This discussion was created from the release v0.4 beta 1 - Please test and report issues.
Beta Was this translation helpful? Give feedback.
All reactions