standard_directories/
lib.rs1#[cfg(not(target_os = "linux"))]
2compile_error!("your operating system is not supported yet.");
3
4mod error;
5use std::path::PathBuf;
6
7pub use error::Error;
8
9#[cfg(target_os = "linux")]
10mod linux;
11
12pub fn config_path(
14 #[cfg_attr(target_os = "linux", allow(unused))] organization_name: String,
15 app_name: String,
16) -> Result<PathBuf, Error> {
17 #[cfg(target_os = "linux")]
18 linux::config_path(app_name)
19}
20
21pub fn data_path(
23 #[cfg_attr(target_os = "linux", allow(unused))] organization_name: String,
24 app_name: String,
25) -> Result<PathBuf, Error> {
26 #[cfg(target_os = "linux")]
27 linux::data_path(app_name)
28}