The ECMCargo module allows for easy usage of Rust projects
in a CMake project. Usage looks like this:
ecm_add_cargo_workspace( DIRECTORY src/rs/ NAME ikona FEATURES with-svgcleaner VENDOR_TARBALL ikona.cargo.vendor.tar.xz VENDOR_CONFIG cargo-vendor-config.toml ) ... target_link_libraries(ikona PRIVATE Qt5::Core Qt5::Widgets Qt5::Quick Qt5::Concurrent KF5::I18n KF5::Kirigami2 KF5::ConfigWidgets "${ikona_artifacts_dir}/libikonars.so")