ix/config.rs
1//! Configuration loading for ix.
2
3use serde::{Deserialize, Serialize};
4use std::path::PathBuf;
5
6#[derive(Debug, Serialize, Deserialize)]
7pub struct Config {
8 pub watch_roots: Vec<PathBuf>,
9 pub exclude_patterns: Vec<String>,
10}
11
12impl Default for Config {
13 fn default() -> Self {
14 Self {
15 watch_roots: Vec::new(),
16 exclude_patterns: vec![
17 ".git".to_string(),
18 "node_modules".to_string(),
19 "target".to_string(),
20 ],
21 }
22 }
23}