From 33841c054db6107271100d98b25349c7b8124089 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Tue, 17 Sep 2024 17:45:21 -0700 Subject: [PATCH] Clippy, fmt, configs --- packages/cli/Cargo.toml | 2 +- packages/cli/src/config.rs | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/packages/cli/Cargo.toml b/packages/cli/Cargo.toml index 0530c7ba3..9a992e5aa 100644 --- a/packages/cli/Cargo.toml +++ b/packages/cli/Cargo.toml @@ -120,7 +120,7 @@ built = { version = "=0.7.4", features = ["git2"] } default = [] plugin = [] tokio-console = ["dep:console-subscriber"] -# optimizations = ["dep:wasm-opt"] +optimizations = ["dep:wasm-opt"] [[bin]] path = "src/main.rs" diff --git a/packages/cli/src/config.rs b/packages/cli/src/config.rs index 657f8d1bf..dfa13bf09 100644 --- a/packages/cli/src/config.rs +++ b/packages/cli/src/config.rs @@ -7,9 +7,19 @@ use std::path::PathBuf; use std::str::FromStr; #[derive( - Copy, Clone, Hash, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize, Debug, Default, + Copy, + Clone, + Hash, + PartialEq, + Eq, + PartialOrd, + Ord, + Serialize, + Deserialize, + Debug, + Default, + clap::ValueEnum, )] -#[derive(clap::ValueEnum)] #[non_exhaustive] pub enum Platform { /// Targeting the web platform using WASM @@ -29,7 +39,7 @@ pub enum Platform { Fullstack, /// Targeting the static generation platform using SSR and Dioxus-Fullstack - #[ clap(name = "static-generation")] + #[clap(name = "static-generation")] #[serde(rename = "static-generation")] StaticGeneration,