vertigo-cli 0.7.0

Reactive Real-DOM library with SSR for Rust - packaging/serving tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Args;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct IndexModel {
    pub run_js: String,
    pub wasm: String,
}

#[derive(Args, Debug, Clone)]
pub struct CommonOpts {
    /// Directory with wasm_run.js and compiled .wasm file. Should be the same during build and serve.
    #[arg(long, default_value_t = {"./build".to_string()})]
    pub dest_dir: String,
}