Rust_EDITIONΒΆ
Added in version 4.4.
Note
Experimental. Gated by CMAKE_EXPERIMENTAL_RUST.
The Rust edition required to build this target. It is initialized from the
CMAKE_Rust_EDITION variable if defined. Setting this property
results in adding a flag such as --edition=2018 to the compile line.
Supported values are:
2015Rust 2015, the default edition, started with Rust 1.0.
2018Rust 2018, available since Rust 1.31.
2021Rust 2021, available since Rust 1.56.
2024Rust 2024, available since Rust 1.85.