aboutsummaryrefslogtreecommitdiff
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>2020-09-05 11:36:12 -0700
commitaa28268d9087572dc7eb62df46fcdc9db12d6de5 (patch)
treea8f955ac15302799b48f94466fc7b8473f247366 /Cargo.toml
parentb4b7605e1f947ef0c58d94354c10fd74fd010a53 (diff)
downloadnitrocli-aa28268d9087572dc7eb62df46fcdc9db12d6de5.tar.gz
nitrocli-aa28268d9087572dc7eb62df46fcdc9db12d6de5.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 2e2e47f..c858d76 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -55,6 +55,9 @@ version = "0.4.0"
[dependencies.envy]
version = "0.4.1"
+[dependencies.directories]
+version = "3"
+
[dependencies.libc]
version = "0.2"