This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.
Additionally, this plugin uses the following plugin-specific keywords:
rust-features(list of strings)
If a rust-toolchain file is detected, the toolchain it specifies will be used by default. However, if
rust-revision are set, the rust-toolchain file will be overridden.
If neither a rust-toolchain exists nor
rust-revision are set, the latest stable toolchain will be used.
NOTE: There are significant bugs in the rust plugin when used with the legacy version of Snapcraft. To avoid these issues, ensure you’re using Snapcraft 3.x and the base keyword in snapcraft.yaml. See the corresponding GitHub issue for more details.