Skip to content

Commit 0461bcf

Browse files
committed
Simplify dylint_internal
1 parent 1d92cd9 commit 0461bcf

4 files changed

Lines changed: 4 additions & 12 deletions

File tree

dylint/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ dylint_internal = { version = "=4.1.0", path = "../internal", features = [
4949
"git",
5050
"packaging",
5151
"rustup",
52-
"sed",
5352
] }
5453

5554
[build-dependencies]

expensive/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ tempfile = { workspace = true }
1212
dylint_internal = { version = "=4.1.0", path = "../internal", features = [
1313
"clippy_utils",
1414
"rustup",
15-
"sed",
1615
"testing",
1716
] }
1817

internal/Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repository = "https://github.com/trailofbits/dylint"
99

1010
[dependencies]
1111
anyhow = { workspace = true }
12+
log = { workspace = true }
1213
regex = { workspace = true }
1314

1415
anstyle = { workspace = true, optional = true }
@@ -20,7 +21,6 @@ env_logger = { workspace = true, optional = true }
2021
git2 = { workspace = true, optional = true }
2122
home = { workspace = true, optional = true }
2223
if_chain = { workspace = true, optional = true }
23-
log = { workspace = true, optional = true }
2424
rustversion = { workspace = true, optional = true }
2525
semver = { workspace = true, optional = true }
2626
serde = { workspace = true, optional = true }
@@ -42,16 +42,14 @@ toml = { workspace = true }
4242
toml_edit = { workspace = true }
4343

4444
[features]
45-
cargo = ["anstyle", "bitflags", "cargo_metadata", "command", "home"]
45+
cargo = ["anstyle", "bitflags", "cargo_metadata", "home"]
4646
clippy_utils = ["semver", "toml", "toml_edit"]
47-
command = ["log"]
4847
config = ["cargo_metadata", "serde", "thiserror", "toml"]
4948
examples = ["cargo", "cargo-util", "rustup", "walkdir"]
50-
git = ["command", "git2", "if_chain"]
49+
git = ["git2", "if_chain"]
5150
home = ["dep:home", "rustversion"]
5251
packaging = ["cargo", "tar", "walkdir"]
53-
rustup = ["command", "cargo_metadata"]
54-
sed = []
52+
rustup = ["cargo_metadata"]
5553
testing = ["ctor", "env_logger", "packaging"]
5654

5755
[lints]

internal/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ pub mod clippy_utils;
1010
#[cfg(feature = "config")]
1111
pub mod config;
1212

13-
#[cfg(feature = "command")]
1413
mod command;
15-
#[cfg(feature = "command")]
1614
pub use command::*;
1715

1816
pub mod env;
@@ -42,9 +40,7 @@ pub mod paths;
4240
#[cfg(feature = "rustup")]
4341
pub mod rustup;
4442

45-
#[cfg(feature = "sed")]
4643
mod sed;
47-
#[cfg(feature = "sed")]
4844
pub use sed::find_and_replace;
4945

5046
#[cfg(feature = "testing")]

0 commit comments

Comments
 (0)