We recently had a user who managed to get Slint running on an STM32U5 with C++. We ended up sorting everything out on Mattermost, but it became apparent that the documentation is missing a guide here:
Figure out the right Rust target and then set -DRust_CARGO_TARGET= (for example to thumbv7em-none-eabihf).
Set -DSLINT_FEATURE_FREESTANDING=ON to not require std.
Set -DBUILD_SHARED_LIBS=OFF to build a static lib (no shared libs on mcu).
Set -DSLINT_FEATURE_RENDERER_SOFTWARE=ON
Set -DDEFAULT_SLINT_EMBED_RESOURCES=embed-for-software-renderer
We recently had a user who managed to get Slint running on an STM32U5 with C++. We ended up sorting everything out on Mattermost, but it became apparent that the documentation is missing a guide here:
-DRust_CARGO_TARGET=
(for example tothumbv7em-none-eabihf
).-DSLINT_FEATURE_FREESTANDING=ON
to not require std.-DBUILD_SHARED_LIBS=OFF
to build a static lib (no shared libs on mcu).-DSLINT_FEATURE_RENDERER_SOFTWARE=ON
-DDEFAULT_SLINT_EMBED_RESOURCES=embed-for-software-renderer