Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add more features to reduce dependencies #239

Merged
merged 1 commit into from
Jan 7, 2025
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
3 changes: 3 additions & 0 deletions crates/artifacts/artifacts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ foundry-compilers-artifacts-vyper.workspace = true

[features]
async = ["foundry-compilers-artifacts-solc/async"]
checksum = ["foundry-compilers-artifacts-solc/checksum"]
walkdir = ["foundry-compilers-artifacts-solc/walkdir"]
rayon = ["foundry-compilers-artifacts-solc/rayon"]
25 changes: 18 additions & 7 deletions crates/artifacts/solc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,26 @@ foundry-compilers-core.workspace = true

alloy-json-abi.workspace = true
alloy-primitives.workspace = true
futures-util = { workspace = true, optional = true }
md-5.workspace = true
rayon.workspace = true
semver.workspace = true
serde_json.workspace = true
serde_repr = "0.1"
serde.workspace = true
thiserror.workspace = true
tokio = { workspace = true, optional = true }
tracing.workspace = true
walkdir.workspace = true
yansi.workspace = true
serde_repr = "0.1"

# async
tokio = { workspace = true, optional = true, features = ["fs"] }
futures-util = { workspace = true, optional = true }

# checksum
md-5 = { workspace = true, optional = true }

# walkdir
walkdir = { workspace = true, optional = true }

# rayon
rayon = { workspace = true, optional = true }

[target.'cfg(windows)'.dependencies]
path-slash.workspace = true
Expand All @@ -41,4 +49,7 @@ similar-asserts.workspace = true
foundry-compilers-core = { workspace = true, features = ["test-utils"] }

[features]
async = ["dep:tokio", "futures-util", "tokio/fs"]
async = ["dep:tokio", "dep:futures-util"]
checksum = ["dep:md-5"]
walkdir = ["dep:walkdir", "foundry-compilers-core/walkdir"]
rayon = ["dep:rayon"]
Loading
Loading