sailfish/sailfish-compiler/src/config.rs

24 lines
474 B
Rust
Raw Normal View History

2020-06-05 22:58:14 -04:00
use std::path::{Path, PathBuf};
#[derive(Clone, Debug)]
pub struct Config {
pub delimiter: char,
pub escape: bool,
pub cache_dir: PathBuf,
#[doc(hidden)]
pub _non_exhaustive: ()
}
impl Default for Config {
fn default() -> Self {
Self {
delimiter: '%',
escape: true,
cache_dir: Path::new(env!("OUT_DIR")).join("cache"),
_non_exhaustive: ()
}
}
}
// TODO: Global configration file