forked from foundry-rs/compilers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
117 lines (96 loc) · 3 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[package]
name = "foundry-compilers"
authors = ["Foundry Maintainers"]
version = "0.1.1"
rust-version = "1.65"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/foundry-rs/compilers"
homepage = "https://github.com/foundry-rs/compilers"
documentation = "https://docs.rs/foundry-compilers"
description = "Utilities for working with solidity compilers, namely solc"
keywords = ["foundry", "solidity", "solc", "ethereum", "ethers"]
edition = "2021"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.playground]
all-features = true
[dependencies]
alloy-primitives = { version = "0.5", default-features = false, features = [
"std",
"serde",
"rand",
] }
alloy-json-abi = { version = "0.5", default-features = false, features = ["std", "serde_json"] }
solang-parser = { version = "=0.3.3", default-features = false }
# serde
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1.0"
# tracing
tracing = "0.1.37"
tiny-keccak = { version = "2.0.2", default-features = false }
sha2 = { version = "0.10.7", default-features = false, optional = true }
md-5 = "0.10.5"
semver = { version = "1.0", features = ["serde"] }
walkdir = "2.3"
once_cell = "1.18"
regex = "1.9"
thiserror = "1.0"
hex = { package = "const-hex", version = "1.6", features = ["hex"] }
yansi = "0.5.1"
dirs = "5.0"
glob = "0.3.1"
num_cpus = "1.16.0"
dunce = "1.0"
rayon = "1.7"
path-slash = "0.2.1"
cfg-if = "1.0.0"
tempfile = { version = "3.8.0", optional = true }
fs_extra = { version = "1.3.0", optional = true }
rand = { version = "0.8", optional = true }
futures-util = { version = "0.3.28", optional = true }
memmap2 = "0.9.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
home = "0.5.5"
svm = { package = "svm-rs", version = "0.3", default-features = false, features = [
"blocking",
], optional = true }
svm-builds = { package = "svm-rs-builds", version = "0.2", optional = true }
tokio = { version = "1.32", features = ["rt-multi-thread"] }
[dev-dependencies]
criterion = { version = "0.5", features = ["async_tokio"] }
tracing-subscriber = { version = "0.3.17", default-features = false, features = [
"env-filter",
"fmt",
] }
rand = "0.8"
pretty_assertions = "1"
tempfile = "3.8"
serde_path_to_error = "0.1"
tokio = { version = "1.32", features = ["rt-multi-thread", "macros"] }
[[bench]]
name = "compile_many"
harness = false
[[bench]]
name = "read_all"
required-features = ["project-util"]
harness = false
[[test]]
name = "project"
path = "tests/project.rs"
required-features = ["full", "project-util"]
[[test]]
name = "mocked"
path = "tests/mocked.rs"
required-features = ["full", "project-util"]
[features]
default = ["rustls"]
full = ["async", "svm-solc"]
async = ["tokio/process", "tokio/io-util", "tokio/fs", "tokio/time", "futures-util"]
svm-solc = ["svm", "svm-builds", "sha2"]
# Utilities for creating and testing project workspaces
project-util = ["tempfile", "fs_extra", "rand"]
tests = []
rustls = ["svm?/rustls"]
openssl = ["svm?/openssl"]