Skip to content

Commit

Permalink
chore: Remove unneeded dependencies (#2523)
Browse files Browse the repository at this point in the history
These dependencies are unused in actual code, and the test I've removed
is a remnant from a move to use an external library -- it was useful to
show that the mechanical transformation was correct, but it's only
testing that library nowadays.
  • Loading branch information
andrewaylett authored Jan 7, 2025
1 parent 0056c72 commit 80c4184
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 106 deletions.
53 changes: 0 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/atuin-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ repository = { workspace = true }
time = { workspace = true }
serde = { workspace = true }
uuid = { workspace = true }
rand = { workspace = true }
typed-builder = { workspace = true }
eyre = { workspace = true }
sqlx = { workspace = true }
Expand Down
20 changes: 0 additions & 20 deletions crates/atuin-common/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ impl<T: AsRef<str>> Escapable for T {}
#[cfg(test)]
mod tests {
use pretty_assertions::assert_ne;
use time::Month;

use super::*;
use std::env;
Expand Down Expand Up @@ -242,25 +241,6 @@ mod tests {
env::remove_var("HOME");
}

#[test]
fn days_from_month() {
assert_eq!(time::util::days_in_year_month(2023, Month::January), 31);
assert_eq!(time::util::days_in_year_month(2023, Month::February), 28);
assert_eq!(time::util::days_in_year_month(2023, Month::March), 31);
assert_eq!(time::util::days_in_year_month(2023, Month::April), 30);
assert_eq!(time::util::days_in_year_month(2023, Month::May), 31);
assert_eq!(time::util::days_in_year_month(2023, Month::June), 30);
assert_eq!(time::util::days_in_year_month(2023, Month::July), 31);
assert_eq!(time::util::days_in_year_month(2023, Month::August), 31);
assert_eq!(time::util::days_in_year_month(2023, Month::September), 30);
assert_eq!(time::util::days_in_year_month(2023, Month::October), 31);
assert_eq!(time::util::days_in_year_month(2023, Month::November), 30);
assert_eq!(time::util::days_in_year_month(2023, Month::December), 31);

// leap years
assert_eq!(time::util::days_in_year_month(2024, Month::February), 29);
}

#[test]
fn uuid_is_unique() {
let how_many: usize = 1000000;
Expand Down
20 changes: 0 additions & 20 deletions crates/atuin-history/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,13 @@ readme.workspace = true

[dependencies]
atuin-client = { path = "../atuin-client", version = "18.4.0" }
atuin-common = { path = "../atuin-common", version = "18.4.0" }

log = { workspace = true }
time = { workspace = true }
eyre = { workspace = true }
directories = { workspace = true }
indicatif = "0.17.5"
serde = { workspace = true }
serde_json = { workspace = true }
crossterm = { version = "0.28.1", features = ["use-dev-tty"] }
unicode-width = "0.1"
itertools = { workspace = true }
tokio = { workspace = true }
async-trait = { workspace = true }
interim = { workspace = true }
base64 = { workspace = true }
fs-err = { workspace = true }
whoami = { workspace = true }
semver = { workspace = true }
futures-util = "0.3"
tracing = "0.1"
uuid = { workspace = true }
unicode-segmentation = "1.11.0"
sysinfo = "0.30.7"

[dev-dependencies]
tracing-tree = "0.4"
divan = "0.1.14"
rand = { workspace = true }

Expand Down
3 changes: 1 addition & 2 deletions crates/atuin-server-database/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ repository = { workspace = true }
[dependencies]
atuin-common = { path = "../atuin-common", version = "18.4.0" }

tracing = "0.1"
tracing = { workspace = true }
time = { workspace = true }
eyre = { workspace = true }
uuid = { workspace = true }
serde = { workspace = true }
async-trait = { workspace = true }
2 changes: 1 addition & 1 deletion crates/atuin-server-postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ atuin-common = { path = "../atuin-common", version = "18.4.0" }
atuin-server-database = { path = "../atuin-server-database", version = "18.4.0" }

eyre = { workspace = true }
tracing = "0.1"
tracing = { workspace = true }
time = { workspace = true }
serde = { workspace = true }
sqlx = { workspace = true }
Expand Down
5 changes: 1 addition & 4 deletions crates/atuin-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ repository = { workspace = true }
atuin-common = { path = "../atuin-common", version = "18.4.0" }
atuin-server-database = { path = "../atuin-server-database", version = "18.4.0" }

tracing = "0.1"
tracing = { workspace = true }
time = { workspace = true }
eyre = { workspace = true }
uuid = { workspace = true }
config = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
base64 = { workspace = true }
rand = { workspace = true }
tokio = { workspace = true }
async-trait = { workspace = true }
Expand All @@ -32,7 +30,6 @@ tower = { workspace = true }
tower-http = { version = "0.5", features = ["trace"] }
reqwest = { workspace = true }
rustls = { version = "0.23", features = ["ring"], default-features = false }
rustls-pemfile = "2.1"
argon2 = "0.5"
semver = { workspace = true }
metrics-exporter-prometheus = "0.12.1"
Expand Down
5 changes: 0 additions & 5 deletions crates/atuin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ atuin-history = { path = "../atuin-history", version = "18.4.0" }
atuin-daemon = { path = "../atuin-daemon", version = "18.4.0", optional = true, default-features = false }

log = { workspace = true }
env_logger = "0.11.5"
time = { workspace = true }
eyre = { workspace = true }
directories = { workspace = true }
indicatif = "0.17.5"
serde = { workspace = true }
serde_json = { workspace = true }
Expand All @@ -64,12 +62,10 @@ itertools = { workspace = true }
tokio = { workspace = true }
async-trait = { workspace = true }
interim = { workspace = true }
base64 = { workspace = true }
clap = { workspace = true }
clap_complete = "4.5.8"
clap_complete_nushell = "4.5.4"
fs-err = { workspace = true }
whoami = { workspace = true }
rpassword = "7.0"
semver = { workspace = true }
rustix = { workspace = true }
Expand All @@ -82,7 +78,6 @@ ratatui = "0.29.0"
tracing = "0.1"
tracing-subscriber = { workspace = true }
uuid = { workspace = true }
unicode-segmentation = "1.11.0"
sysinfo = "0.30.7"
regex = "1.10.5"

Expand Down

0 comments on commit 80c4184

Please sign in to comment.