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

Commit

Permalink
chore: do not include ethers-wasm example as top level workspace member
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed Aug 23, 2021
1 parent 90e3398 commit 9c118dd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 82 deletions.
75 changes: 0 additions & 75 deletions Cargo.lock

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

8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ members = [
"ethers-signers",
"ethers-core",
"ethers-middleware",
"examples/ethers-wasm"
]

# profile for the wasm example
[profile.release.package.ethers-wasm]
# Tell `rustc` to optimize for small code size.
opt-level = "s"
exclude = [
"examples/ethers-wasm",
]

[package.metadata.docs.rs]
all-features = true
Expand Down
5 changes: 5 additions & 0 deletions examples/ethers-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ web-sys = "0.3.51"
[dev-dependencies]
wasm-bindgen-test = "0.3.24"

# profile for the wasm example
[profile.release.package.ethers-wasm]
# Tell `rustc` to optimize for small code size.
opt-level = "s"

2 changes: 1 addition & 1 deletion examples/ethers-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ macro_rules! log {

abigen!(
SimpleContract,
"./examples/contract_abi.json",
"./../contract_abi.json",
event_derives(serde::Deserialize, serde::Serialize)
);

Expand Down
2 changes: 1 addition & 1 deletion examples/ethers-wasm/tests/contract_with_abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ wasm_bindgen_test_configure!(run_in_browser);
// definition in human readable format
abigen!(
SimpleContract,
"./examples/contract_abi.json",
"../contract_abi.json",
event_derives(serde::Deserialize, serde::Serialize)
);

Expand Down

0 comments on commit 9c118dd

Please sign in to comment.