Skip to content

Commit

Permalink
Remove unused dependencies (#26)
Browse files Browse the repository at this point in the history
* Remove anyhow from a few crates that were no longer using it (outside of tests).
* Remove tokio-macros crate no longer used.
* Update a few dependencies to address cargo deny reported issues.
* Tighten cargo deny check to fail on yanked crates.
  • Loading branch information
reubeno authored May 20, 2024
1 parent 837145b commit ff1615c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 42 deletions.
66 changes: 32 additions & 34 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 cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ harness = false
workspace = true

[dependencies]
anyhow = "1.0.86"
brush-interactive-shell = { path = "../interactive-shell" }
brush-parser = { path = "../parser" }
brush-shell = { path = "../shell" }
Expand Down
7 changes: 2 additions & 5 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ feature-depth = 1
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
[advisories]
version = 2
yanked = "deny"
#db-path = "$CARGO_HOME/advisory-dbs"
#db-urls = ["https://github.com/rustsec/advisory-db"]
ignore = [
# We only use ansi_term via dev dependency; we somewhat make sure that
# doesn't widen through bans.
{ id = "RUSTSEC-2021-0139", reason = "ansi_term" }
]
ignore = []
#git-fetch-with-cli = true

# This section is considered when running `cargo deny check licenses`
Expand Down
1 change: 0 additions & 1 deletion interactive-shell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ bench = false
workspace = true

[dependencies]
anyhow = "1.0.86"
brush-parser = { path = "../parser" }
brush-shell = { path = "../shell" }
rustyline = { git = "https://github.com/reubeno/rustyline", rev = "023a08093e9b8ff81f9d8e096e00a23e6e83167a", features = ["derive"] }
Expand Down
1 change: 0 additions & 1 deletion shell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ tokio = { version = "1.37.0", features = [
"rt-multi-thread",
"signal",
] }
tokio-macros = "2.2.0"
tracing = "0.1.40"

[target.'cfg(windows)'.dependencies]
Expand Down

0 comments on commit ff1615c

Please sign in to comment.