aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-05-16 07:41:20 +0300
committerKirill Chibisov <contact@kchibisov.com>2023-05-17 08:36:41 +0300
commit04811c674ba01a0f68d9842c33816b78fe3253ab (patch)
tree306c312974d14b2d62873bf9809f234fb4129af1 /alacritty_terminal
parentb1feba6916f1ccf57b0a76914946c112ec2195a2 (diff)
downloadalacritty-04811c674ba01a0f68d9842c33816b78fe3253ab.tar.gz
alacritty-04811c674ba01a0f68d9842c33816b78fe3253ab.zip
Update xdg and dirs crate
The recent version on xdg crate moved to home crate which is used by cargo. Thus to query for home directory we can use the home dependency instead which is smaller.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/Cargo.toml18
-rw-r--r--alacritty_terminal/src/tty/mod.rs2
2 files changed, 10 insertions, 10 deletions
diff --git a/alacritty_terminal/Cargo.toml b/alacritty_terminal/Cargo.toml
index 546d3b96..7252a6f4 100644
--- a/alacritty_terminal/Cargo.toml
+++ b/alacritty_terminal/Cargo.toml
@@ -18,19 +18,19 @@ path = "../alacritty_config"
version = "0.1.2-dev"
[dependencies]
-libc = "0.2"
+base64 = "0.13.0"
bitflags = { version = "2.2.1", features = ["serde"] }
+home = "0.5.5"
+libc = "0.2"
+log = "0.4"
+mio = "0.6.20"
+mio-extras = "2"
parking_lot = "0.12.0"
+regex-automata = "0.1.9"
serde = { version = "1", features = ["derive", "rc"] }
serde_yaml = "0.8"
-vte = { version = "0.10.0", default-features = false }
-mio = "0.6.20"
-mio-extras = "2"
-log = "0.4"
unicode-width = "0.1"
-base64 = "0.13.0"
-regex-automata = "0.1.9"
-dirs = "4.0.0"
+vte = { version = "0.10.0", default-features = false }
[target.'cfg(unix)'.dependencies]
nix = "0.24.1"
@@ -38,8 +38,8 @@ signal-hook = "0.3.10"
signal-hook-mio = { version = "0.2.1", features = ["support-v0_6"] }
[target.'cfg(windows)'.dependencies]
-miow = "0.3"
mio-anonymous-pipes = "0.2"
+miow = "0.3"
windows-sys = { version = "0.36", features = [
"Win32_System_Console",
"Win32_Foundation",
diff --git a/alacritty_terminal/src/tty/mod.rs b/alacritty_terminal/src/tty/mod.rs
index c537c8d6..b4c5fae0 100644
--- a/alacritty_terminal/src/tty/mod.rs
+++ b/alacritty_terminal/src/tty/mod.rs
@@ -98,7 +98,7 @@ fn terminfo_exists(terminfo: &str) -> bool {
if let Some(dir) = env::var_os("TERMINFO") {
check_path!(PathBuf::from(&dir));
- } else if let Some(home) = dirs::home_dir() {
+ } else if let Some(home) = home::home_dir() {
check_path!(home.join(".terminfo"));
}