floem_css/
options.rs

1use std::path::PathBuf;
2
3/// Options for initializing theme and responsive loader.
4///
5/// `path` defaults to `./styles` if not defined. Automatically detects if given
6/// path is directory or file.
7///
8/// `recursive` sets the filesystem notifier mode to also detect changes in subfolders.
9/// Has no have effect if path points to file.
10pub struct ProviderOptions {
11    pub path: PathBuf,
12    pub recursive: bool,
13}
14
15impl Default for ProviderOptions {
16    fn default() -> Self {
17        Self {
18            path: PathBuf::from("./styles"),
19            recursive: true,
20        }
21    }
22}