chore: remove dirs crate and reduce tracing features

This commit is contained in:
Michael Aaron Murphy 2025-12-02 17:23:14 +01:00
parent 54520b0a55
commit 702ea3ed5c
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 4 additions and 4 deletions

View file

@ -12,11 +12,10 @@ keywords = ["icons", "gui", "freedesktop"]
[dependencies]
bstr = "1.12.1"
btoi = "0.5.0"
dirs = "6.0"
memchr = "2.7.6"
memmap2 = "0.9"
thiserror = "2.0"
tracing = "0.1.41"
tracing = { version = "0.1.41", no-default-features = true }
xdg = "3.0"
[dev-dependencies]

View file

@ -1,4 +1,3 @@
use dirs::home_dir;
use std::path::PathBuf;
use std::sync::LazyLock;
use xdg::BaseDirectories;
@ -20,7 +19,9 @@ fn icon_theme_base_paths() -> Vec<PathBuf> {
.into_iter()
.flat_map(|data_home| [data_home.join("icons"), data_home.join("pixmaps")].into_iter());
let home_dir = home_dir().into_iter().map(|home| home.join(".icons"));
let home_dir = std::env::home_dir()
.into_iter()
.map(|home| home.join(".icons"));
data_dirs
.chain(data_home_dirs)