2021-10-26 11:28:10 +00:00
|
|
|
[package]
|
|
|
|
name = "ethers-solc"
|
2022-09-18 15:45:45 +00:00
|
|
|
authors = [
|
|
|
|
"Matthias Seitz <matthias.seitz@outlook.de>",
|
|
|
|
"Georgios Konstantopoulos <me@gakonst.com>",
|
|
|
|
]
|
2023-03-16 19:28:35 +00:00
|
|
|
readme = "README.md"
|
2022-09-18 15:45:45 +00:00
|
|
|
description = "Utilites for working with solc"
|
2023-03-16 19:28:35 +00:00
|
|
|
keywords = ["ethers", "ethereum", "web3", "solc", "solidity"]
|
|
|
|
|
|
|
|
version.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
rust-version.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
documentation.workspace = true
|
|
|
|
repository.workspace = true
|
|
|
|
homepage.workspace = true
|
|
|
|
categories.workspace = true
|
|
|
|
exclude.workspace = true
|
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustc-args = ["--cfg", "docsrs"]
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
[package.metadata.playground]
|
|
|
|
all-features = true
|
2021-10-26 11:28:10 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2023-03-16 19:28:35 +00:00
|
|
|
ethers-core.workspace = true
|
|
|
|
|
|
|
|
solang-parser = { version = "=0.2.3", default-features = false }
|
|
|
|
|
|
|
|
serde = { workspace = true, features = ["derive", "rc"] }
|
|
|
|
serde_json.workspace = true
|
|
|
|
|
|
|
|
tiny-keccak = { version = "2.0.2", default-features = false }
|
|
|
|
sha2 = { workspace = true, optional = true }
|
2022-09-22 16:28:18 +00:00
|
|
|
md-5 = "0.10.5"
|
2023-03-16 19:28:35 +00:00
|
|
|
|
|
|
|
semver = { workspace = true, features = ["serde"] }
|
|
|
|
walkdir.workspace = true
|
|
|
|
once_cell.workspace = true
|
|
|
|
regex.workspace = true
|
|
|
|
thiserror.workspace = true
|
|
|
|
hex.workspace = true
|
2022-09-04 18:00:11 +00:00
|
|
|
yansi = "0.5.1"
|
2023-01-09 05:15:48 +00:00
|
|
|
glob = "0.3.1"
|
2023-03-16 19:28:35 +00:00
|
|
|
tracing.workspace = true
|
2022-12-22 18:58:52 +00:00
|
|
|
num_cpus = "1.15.0"
|
2023-03-16 19:28:35 +00:00
|
|
|
dunce.workspace = true
|
|
|
|
rayon.workspace = true
|
2022-08-08 17:27:28 +00:00
|
|
|
path-slash = "0.2.1"
|
2022-05-14 23:29:45 +00:00
|
|
|
cfg-if = "1.0.0"
|
2021-10-31 14:41:36 +00:00
|
|
|
|
2023-03-16 19:28:35 +00:00
|
|
|
tempfile = { version = "3.4.0", optional = true }
|
|
|
|
fs_extra = { version = "1.3.0", optional = true }
|
|
|
|
rand = { workspace = true, optional = true }
|
|
|
|
futures-util = { workspace = true, optional = true }
|
|
|
|
|
2021-12-03 20:03:26 +00:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2022-10-12 18:13:25 +00:00
|
|
|
home = "0.5.4"
|
2023-03-16 19:28:35 +00:00
|
|
|
svm = { package = "svm-rs", version = "0.2", default-features = false, features = [
|
2022-09-18 15:45:45 +00:00
|
|
|
"blocking",
|
2023-03-16 19:28:35 +00:00
|
|
|
], optional = true }
|
2023-02-23 20:48:41 +00:00
|
|
|
svm-builds = { package = "svm-rs-builds", version = "0.1", optional = true }
|
2023-03-16 19:28:35 +00:00
|
|
|
tokio = { workspace = true, features = ["rt"] }
|
2021-12-03 20:03:26 +00:00
|
|
|
|
2021-12-03 17:27:55 +00:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
# NOTE: this enables wasm compatibility for getrandom indirectly
|
2023-03-16 19:28:35 +00:00
|
|
|
getrandom.workspace = true
|
2021-10-26 11:28:10 +00:00
|
|
|
|
2022-10-25 18:12:50 +00:00
|
|
|
[dev-dependencies]
|
2023-03-16 19:28:35 +00:00
|
|
|
criterion.workspace = true
|
2022-11-27 20:32:57 +00:00
|
|
|
env_logger = "0.10.0"
|
2023-03-16 19:28:35 +00:00
|
|
|
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
|
|
|
|
rand.workspace = true
|
2022-10-25 18:12:50 +00:00
|
|
|
pretty_assertions = "1.3.0"
|
2023-03-16 19:28:35 +00:00
|
|
|
tempfile.workspace = true
|
2023-03-09 22:24:26 +00:00
|
|
|
serde_path_to_error = "0.1.10"
|
2022-10-25 18:12:50 +00:00
|
|
|
|
2021-12-06 23:02:13 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "compile_many"
|
|
|
|
harness = false
|
|
|
|
|
2022-01-05 21:46:57 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "read_all"
|
2022-11-08 23:08:41 +00:00
|
|
|
required-features = ["project-util"]
|
2022-01-05 21:46:57 +00:00
|
|
|
harness = false
|
|
|
|
|
2021-12-12 23:39:28 +00:00
|
|
|
[[test]]
|
|
|
|
name = "project"
|
|
|
|
path = "tests/project.rs"
|
2022-04-03 15:05:31 +00:00
|
|
|
required-features = ["full", "project-util"]
|
2021-12-12 23:39:28 +00:00
|
|
|
|
2022-03-15 12:27:49 +00:00
|
|
|
[[test]]
|
|
|
|
name = "mocked"
|
|
|
|
path = "tests/mocked.rs"
|
2022-04-03 15:05:31 +00:00
|
|
|
required-features = ["full", "project-util"]
|
2022-03-15 12:27:49 +00:00
|
|
|
|
2021-10-26 11:28:10 +00:00
|
|
|
[features]
|
2021-12-19 14:56:54 +00:00
|
|
|
default = ["rustls"]
|
2023-03-16 19:28:35 +00:00
|
|
|
|
2022-03-21 08:58:56 +00:00
|
|
|
full = ["async", "svm-solc"]
|
2023-03-16 19:28:35 +00:00
|
|
|
|
|
|
|
async = [
|
|
|
|
"tokio/process",
|
|
|
|
"tokio/io-util",
|
|
|
|
"tokio/fs",
|
|
|
|
"tokio/time",
|
|
|
|
"futures-util",
|
|
|
|
"criterion/async_tokio",
|
|
|
|
]
|
2023-03-21 18:13:50 +00:00
|
|
|
svm-solc = ["svm", "svm-builds", "sha2"]
|
2023-03-16 19:28:35 +00:00
|
|
|
|
2021-12-12 23:39:28 +00:00
|
|
|
# Utilities for creating and testing project workspaces
|
2022-03-15 12:27:49 +00:00
|
|
|
project-util = ["tempfile", "fs_extra", "rand"]
|
2023-03-16 19:28:35 +00:00
|
|
|
|
2021-11-05 18:23:24 +00:00
|
|
|
tests = []
|
2023-03-21 18:13:50 +00:00
|
|
|
openssl = ["svm?/openssl"]
|
|
|
|
rustls = ["svm?/rustls"]
|
2023-03-16 19:28:35 +00:00
|
|
|
|
|
|
|
# Deprecated
|
|
|
|
asm = []
|