You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib.rs
+50-18Lines changed: 50 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,9 @@
73
73
//!
74
74
//! ### Tip
75
75
//! to add this crate to your project with the default, toml config do the following: `cargo add confy`, otherwise do something like: `cargo add confy --no-default-features --features yaml_conf`, for more info, see [cargo docs on features]
76
-
//!
76
+
//!
77
77
//! [cargo docs on features]: https://docs.rust-lang.org/cargo/reference/resolver.html#features
78
-
//!
78
+
//!
79
79
//! feature | file format | description
80
80
//! ------- | ----------- | -----------
81
81
//! **default**: `toml_conf` | [toml] | considered a reasonable default, uses the standard-compliant [`toml` crate]
@@ -94,8 +94,12 @@
94
94
mod utils;
95
95
use utils::*;
96
96
97
-
use directories::ProjectDirs;
98
-
use serde::{de::DeserializeOwned,Serialize};
97
+
#[cfg(feature = "xdg")]
98
+
use etcetera::app_strategy::choose_app_strategy;
99
+
#[cfg(not(feature = "xdg"))]
100
+
use etcetera::app_strategy::choose_native_strategy;
0 commit comments