tracel_xtask/commands/
mod.rs

1pub mod build;
2pub mod bump;
3pub mod check;
4pub mod compile;
5pub mod coverage;
6pub mod dependencies;
7pub mod doc;
8pub mod docker;
9pub mod fix;
10pub mod publish;
11pub mod test;
12pub mod validate;
13pub mod vulnerabilities;
14
15// use crate::declare_target;
16use clap::ValueEnum;
17use strum::{Display, EnumIter, EnumString};
18
19pub const CARGO_NIGHTLY_MSG: &str = "You must use 'cargo +nightly' to run nightly checks.
20Install a nightly toolchain with 'rustup toolchain install nightly'.";
21pub const WARN_IGNORED_EXCLUDE_AND_ONLY_ARGS: &str =
22    "--target workspace ignores the arguments --exclude and --only. Use --target all-packages instead.";
23pub const WARN_IGNORED_ONLY_ARGS: &str =
24    "--target workspace ignores the arguments --only. Use --target all-packages instead.";
25
26#[tracel_xtask_macros::declare_targets]
27pub enum Target {}
28
29#[derive(EnumString, EnumIter, Default, Display, Clone, PartialEq, ValueEnum)]
30#[strum(serialize_all = "lowercase")]
31pub enum Profile {
32    All,
33    #[default]
34    Debug,
35    Release,
36}