summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-25 14:15:50 +0100
committerDaniel Mueller <deso@posteo.net>2021-01-10 10:15:44 -0800
commitfadd56a14310aea6a3f2d86693aa8e1dd8c12b67 (patch)
treefc999401b1ff932a0f554b9558bbdda3e4ca35fa /Cargo.toml
parenta7668265d507a7214b312c5dce874f0185b7b09a (diff)
downloadnitrocli-fadd56a14310aea6a3f2d86693aa8e1dd8c12b67.tar.gz
nitrocli-fadd56a14310aea6a3f2d86693aa8e1dd8c12b67.tar.bz2
Use standard configuration file locations
This patch uses the directories crate to query the appropriate path for the configuration files. For Linux, paths according to the XDG Base Directory Specification are used. Note that directories does not yet support the XDG_CONFIG_DIRS variable for system-wide configuration files. Therefore we only use a user configuration file.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 6b27c46..61c2a15 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -55,6 +55,9 @@ version = "0.4.0"
[dependencies.envy]
version = "0.4.2"
+[dependencies.directories]
+version = "3"
+
[dependencies.libc]
version = "0.2"