yagit
Yet another static site generator for Git 🙀️
Name | Size | Mode | |
.. | |||
src/config.rs | 1076B | -rw-r--r-- |
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
//! Compile-time configuration keys static_toml::static_toml! { static CONFIG = include_toml!("config.toml"); } #[cfg(not(debug_assertions))] pub const OUTPUT_PATH: &str = CONFIG.output.release.path; #[cfg(debug_assertions)] pub const OUTPUT_PATH: &str = CONFIG.output.debug.path; pub const TREE_SUBDIR: &str = CONFIG.output.tree_subdir; pub const BLOB_SUBDIR: &str = CONFIG.output.blob_subdir; pub const COMMIT_SUBDIR: &str = CONFIG.output.commit_subdir; pub const PRIVATE_OUTPUT_ROOT: &str = CONFIG.output.private_output_root; #[cfg(not(debug_assertions))] pub const GIT_USER: &str = CONFIG.git.user; pub const OWNER: &str = CONFIG.git.store_owner; #[cfg(debug_assertions)] pub const STORE_PATH: &str = CONFIG.git.debug.store_path; #[cfg(debug_assertions)] pub const PRIVATE_STORE_PATH: &str = CONFIG.git.debug.private_store_path; #[cfg(not(debug_assertions))] pub const STORE_PATH: &str = CONFIG.git.release.store_path; #[cfg(not(debug_assertions))] pub const PRIVATE_STORE_PATH: &str = CONFIG.git.release.private_store_path;