trunk 0.21.14

Build, bundle & ship your Rust WASM application to the web.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::config::models::ConfigModel;
use schemars::JsonSchema;
use serde::Deserialize;
use std::path::PathBuf;

/// Config options for the watch system.
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, JsonSchema)]
pub struct Watch {
    /// Watch specific file(s) or folder(s) [default: build target parent folder]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub watch: Vec<PathBuf>,

    /// Paths to ignore [default: []]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub ignore: Vec<PathBuf>,
}

impl ConfigModel for Watch {}