tracel_xtask/
context.rs

1use strum::{Display, EnumIter, EnumString};
2
3#[derive(EnumString, EnumIter, Default, Display, Clone, PartialEq, clap::ValueEnum)]
4#[strum(serialize_all = "lowercase")]
5pub enum Context {
6    /// Set the context to all
7    All,
8    #[strum(to_string = "no-std")]
9    /// Set the context to no-std (no Rust standard library available).
10    NoStd,
11    /// Set the context to std (Rust standard library is available).
12    #[default]
13    Std,
14}