Clippy, fmt, configs
This commit is contained in:
2 files changed
+14
-4
No files matched your search
@@ -120,7 +120,7 @@ built = { version = "=0.7.4", features = ["git2"] }
|
|||||||
default = []
|
default = []
|
||||||
plugin = []
|
plugin = []
|
||||||
tokio-console = ["dep:console-subscriber"]
|
tokio-console = ["dep:console-subscriber"]
|
||||||
# optimizations = ["dep:wasm-opt"]
|
optimizations = ["dep:wasm-opt"]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|||||||
@@ -7,9 +7,19 @@ use std::path::PathBuf;
|
|||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
#[derive(
|
#[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]
|
#[non_exhaustive]
|
||||||
pub enum Platform {
|
pub enum Platform {
|
||||||
/// Targeting the web platform using WASM
|
/// Targeting the web platform using WASM
|
||||||
@@ -29,7 +39,7 @@ pub enum Platform {
|
|||||||
Fullstack,
|
Fullstack,
|
||||||
|
|
||||||
/// Targeting the static generation platform using SSR and Dioxus-Fullstack
|
/// Targeting the static generation platform using SSR and Dioxus-Fullstack
|
||||||
#[ clap(name = "static-generation")]
|
#[clap(name = "static-generation")]
|
||||||
#[serde(rename = "static-generation")]
|
#[serde(rename = "static-generation")]
|
||||||
StaticGeneration,
|
StaticGeneration,
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user