Skip to content

Commit

Permalink
chore: remove unused cli deps (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevyor authored Mar 18, 2024
1 parent e78b318 commit c1be0fa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
17 changes: 0 additions & 17 deletions Cargo.lock

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

14 changes: 3 additions & 11 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ version = "0.1.1"
edition = "2021"
authors = ["Grit Developers <support@grit.io>"]

[lints]
rust.unused_crate_dependencies = "forbid"

[lib]
path = "src/lib.rs"

[dependencies]
anyhow = "1.0.70"
clap = { version = "4.1.13", features = ["derive"] }
tree-sitter = { path = "../../vendor/tree-sitter-facade", package = "tree-sitter-facade-sg" }
walkdir = "2.3.3"
indicatif = "0.17.5"
ignore = "0.4.20"
# Do *NOT* upgrade beyond 1.0.171 until https://github.com/serde-rs/serde/issues/2538 is fixed
Expand All @@ -29,8 +30,6 @@ env_logger = "0.10.0"
git2 = "0.17.2"
regex = "1.7.3"
openssl = { version = "0.10", features = ["vendored"] }
tree-sitter-gritql = { path = "../../vendor/tree-sitter-gritql" }
tree-sitter-javascript = { path = "../../resources/language-metavariables/tree-sitter-javascript" }
marzano-core = { path = "../core", features = [
"non_wasm",
], default-features = false }
Expand Down Expand Up @@ -65,18 +64,11 @@ opentelemetry_sdk = { version = "0.21.1", optional = true, features = [
] }
tracing-opentelemetry = { version = "0.22.0", optional = true, default-features = false }

tracing-subscriber = { version = "0.3.18" }
tracing = { version = "0.1.40", default-features = false, features = [] }

[dev-dependencies]
insta = { version = "1.30.0", features = ["yaml", "redactions"] }
trim-margin = "0.1.0"
buildkite-test-collector = "0.1.1"
assert_cmd = "2.0.12"
predicates = "3.0.3"
fs_extra = "1.3"
ntest = "0.9.0"
debug_print = "1.0.0"
similar = "2.2.1"
reqwest = { version = "0.11.22", features = ["blocking", "json"] }
marzano-test-utils = { path = "../test_utils" }
Expand Down
5 changes: 5 additions & 0 deletions crates/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ mod utils;
mod ux;
#[cfg(feature = "workflows_v2")]
mod workflows;

// git2 uses openssl, but breaks windows, so we need
// to import openssl and specify the vendored feature in order
// to prevet git2 from breaking on windows
use openssl as _;
1 change: 1 addition & 0 deletions crates/cli_bin/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg_attr(not(test), deny(unused_crate_dependencies))]
use marzano_cli::commands::run_command;
use marzano_cli::error::GoodError;
// We always instrument
Expand Down

0 comments on commit c1be0fa

Please sign in to comment.