diff --git a/Cargo.toml b/Cargo.toml index 44bc88f..e3909d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,13 +6,12 @@ description = "Adblocker for Spotify" edition = "2018" [dependencies] -home = "*" lazy_static = "*" libc = "*" -serde = { version = "*", features = ["derive"] } -toml = "*" redhook = "*" regex = "*" +serde = { version = "*", features = ["derive"] } +toml = "*" [lib] name = "spotifyadblock" diff --git a/src/lib.rs b/src/lib.rs index 6e72cbd..b48ab31 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,6 @@ mod cef_urlrequest_capi; use cef_urlrequest_capi::{ _cef_request_context_t, _cef_request_t, _cef_urlrequest_client_t, cef_string_userfree_utf16_free, cef_urlrequest_t, }; -use home::home_dir; use lazy_static::lazy_static; use libc::{addrinfo, c_char, EAI_FAIL}; use redhook::{hook, real}; @@ -26,7 +25,8 @@ lazy_static! { static ref CONFIG: Config = { let config_paths = vec![ PathBuf::from("config.toml"), - home_dir().unwrap().join(".config/spotify-adblock/config.toml"), + #[allow(deprecated)] // std::env::home_dir() is only broken on Windows + std::env::home_dir().unwrap().join(".config/spotify-adblock/config.toml"), PathBuf::from("/etc/spotify-adblock/config.toml"), ];