Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dylint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ dylint_internal = { version = "=4.1.0", path = "../internal", features = [
"git",
"packaging",
"rustup",
"sed",
] }

[build-dependencies]
Expand Down
1 change: 0 additions & 1 deletion expensive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ tempfile = { workspace = true }
dylint_internal = { version = "=4.1.0", path = "../internal", features = [
"clippy_utils",
"rustup",
"sed",
"testing",
] }

Expand Down
10 changes: 4 additions & 6 deletions internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/trailofbits/dylint"

[dependencies]
anyhow = { workspace = true }
log = { workspace = true }
regex = { workspace = true }

anstyle = { workspace = true, optional = true }
Expand All @@ -20,7 +21,6 @@ env_logger = { workspace = true, optional = true }
git2 = { workspace = true, optional = true }
home = { workspace = true, optional = true }
if_chain = { workspace = true, optional = true }
log = { workspace = true, optional = true }
rustversion = { workspace = true, optional = true }
semver = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
Expand All @@ -42,16 +42,14 @@ toml = { workspace = true }
toml_edit = { workspace = true }

[features]
cargo = ["anstyle", "bitflags", "cargo_metadata", "command", "home"]
cargo = ["anstyle", "bitflags", "cargo_metadata", "home"]
clippy_utils = ["semver", "toml", "toml_edit"]
command = ["log"]
config = ["cargo_metadata", "serde", "thiserror", "toml"]
examples = ["cargo", "cargo-util", "rustup", "walkdir"]
git = ["command", "git2", "if_chain"]
git = ["git2", "if_chain"]
home = ["dep:home", "rustversion"]
packaging = ["cargo", "tar", "walkdir"]
rustup = ["command", "cargo_metadata"]
sed = []
rustup = ["cargo_metadata"]
testing = ["ctor", "env_logger", "packaging"]

[lints]
Expand Down
4 changes: 0 additions & 4 deletions internal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ pub mod clippy_utils;
#[cfg(feature = "config")]
pub mod config;

#[cfg(feature = "command")]
mod command;
#[cfg(feature = "command")]
pub use command::*;

pub mod env;
Expand Down Expand Up @@ -42,9 +40,7 @@ pub mod paths;
#[cfg(feature = "rustup")]
pub mod rustup;

#[cfg(feature = "sed")]
mod sed;
#[cfg(feature = "sed")]
pub use sed::find_and_replace;

#[cfg(feature = "testing")]
Expand Down