Skip to content

Commit 78b3766

Browse files
committed
feat: add more features to reduce dependencies
1 parent d91b258 commit 78b3766

File tree

10 files changed

+840
-755
lines changed

10 files changed

+840
-755
lines changed

crates/artifacts/artifacts/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ foundry-compilers-artifacts-vyper.workspace = true
2020

2121
[features]
2222
async = ["foundry-compilers-artifacts-solc/async"]
23+
checksum = ["foundry-compilers-artifacts-solc/checksum"]
24+
walkdir = ["foundry-compilers-artifacts-solc/walkdir"]
25+
rayon = ["foundry-compilers-artifacts-solc/rayon"]

crates/artifacts/solc/Cargo.toml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,26 @@ foundry-compilers-core.workspace = true
1919

2020
alloy-json-abi.workspace = true
2121
alloy-primitives.workspace = true
22-
futures-util = { workspace = true, optional = true }
23-
md-5.workspace = true
24-
rayon.workspace = true
2522
semver.workspace = true
2623
serde_json.workspace = true
24+
serde_repr = "0.1"
2725
serde.workspace = true
2826
thiserror.workspace = true
29-
tokio = { workspace = true, optional = true }
3027
tracing.workspace = true
31-
walkdir.workspace = true
3228
yansi.workspace = true
33-
serde_repr = "0.1"
29+
30+
# async
31+
tokio = { workspace = true, optional = true, features = ["fs"] }
32+
futures-util = { workspace = true, optional = true }
33+
34+
# checksum
35+
md-5 = { workspace = true, optional = true }
36+
37+
# walkdir
38+
walkdir = { workspace = true, optional = true }
39+
40+
# rayon
41+
rayon = { workspace = true, optional = true }
3442

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

4351
[features]
44-
async = ["dep:tokio", "futures-util", "tokio/fs"]
52+
async = ["dep:tokio", "dep:futures-util"]
53+
checksum = ["dep:md-5"]
54+
walkdir = ["dep:walkdir", "foundry-compilers-core/walkdir"]
55+
rayon = ["dep:rayon"]

0 commit comments

Comments
 (0)