Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: remove "js" feature from getrandom #2433

Merged
merged 1 commit into from
May 26, 2023
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
5 changes: 0 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,4 @@ tracing-subscriber = { version = "0.3.17", default-features = false }
tracing-futures = "0.2.5"

# wasm
getrandom = { version = "0.2", features = ["js"] }
instant = "0.1.12"
4 changes: 0 additions & 4 deletions ethers-contract/ethers-contract-abigen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ reqwest = { workspace = true, features = ["blocking"], optional = true }
tokio = { workspace = true, optional = true }
url = { workspace = true, optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
# NOTE: this enables wasm compatibility for getrandom indirectly
getrandom.workspace = true

[features]
online = ["reqwest", "ethers-etherscan", "url", "tokio"]
rustls = ["reqwest?/rustls-tls", "ethers-etherscan?/rustls"]
Expand Down
4 changes: 0 additions & 4 deletions ethers-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ syn = { workspace = true, optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tempfile.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
# NOTE: this enables wasm compatibility for getrandom indirectly
getrandom.workspace = true

[dev-dependencies]
bincode = { version = "1.3.3", default-features = false }
once_cell.workspace = true
Expand Down
4 changes: 0 additions & 4 deletions ethers-etherscan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ thiserror.workspace = true
tracing.workspace = true
semver.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
# NOTE: this enables wasm compatibility for getrandom indirectly
getrandom.workspace = true

[dev-dependencies]
ethers-solc.workspace = true

Expand Down
2 changes: 0 additions & 2 deletions ethers-providers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ ws_stream_wasm = "0.7"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = ["console"] }
# NOTE: this enables wasm compatibility for getrandom indirectly
getrandom.workspace = true

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time"] }
Expand Down
4 changes: 0 additions & 4 deletions ethers-solc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ svm = { package = "svm-rs", version = "0.2", default-features = false, features
svm-builds = { package = "svm-rs-builds", version = "0.1", optional = true }
tokio = { workspace = true, features = ["rt-multi-thread"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
# NOTE: this enables wasm compatibility for getrandom indirectly
getrandom.workspace = true

[dev-dependencies]
criterion.workspace = true
env_logger = "0.10.0"
Expand Down
1 change: 1 addition & 0 deletions examples/wasm/LICENSE-APACHE
1 change: 1 addition & 0 deletions examples/wasm/LICENSE-MIT
21 changes: 20 additions & 1 deletion examples/wasm/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
{"name":"examples-wasm","license":"MIT OR Apache-2.0","private":"true","scripts":{"build":"webpack","serve":"webpack-dev-server","anvil":"anvil -m 'stuff inherit faith park genre spread huge knee ecology private marble supreme'","ganache":"ganache-cli -m 'stuff inherit faith park genre spread huge knee ecology private marble supreme'"},"devDependencies":{"@wasm-tool/wasm-pack-plugin":"^1.6","html-webpack-plugin":"^5.5","text-encoding":"^0.7","webpack":"^5.75","webpack-cli":"^5.0","webpack-dev-server":"^4.11","ganache-cli":"^6.12"}}
{
"name": "examples-wasm",
"license": "MIT OR Apache-2.0",
"private": "true",
"scripts": {
"build": "webpack",
"serve": "webpack-dev-server",
"anvil": "anvil -m 'stuff inherit faith park genre spread huge knee ecology private marble supreme'",
"ganache": "ganache-cli -m 'stuff inherit faith park genre spread huge knee ecology private marble supreme'"
},
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "^1.6",
"ganache-cli": "^6.12",
"html-webpack-plugin": "^5.5",
"text-encoding": "^0.7",
"webpack": "^5.75",
"webpack-cli": "^5.0",
"webpack-dev-server": "^4.11"
}
}
Loading