Skip to content

Commit

Permalink
feat(meta): add essentials to default features (#1904)
Browse files Browse the repository at this point in the history
* feat(`meta`): add `full` to default features

* feat: essentials

* fix: add `js` to getrandom for wasm32

* Revert "fix: add `js` to getrandom for wasm32"

This reverts commit bec14d9.

* fix: exclude alloy from wasm32 workflow

* nit
  • Loading branch information
yash-atreya authored Jan 15, 2025
1 parent 45f3fad commit fac4979
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
- name: cargo hack
run: |
cargo hack build --workspace --ignore-unknown-features --features ws --target wasm32-unknown-unknown \
--exclude alloy \
--exclude alloy-contract \
--exclude alloy-network \
--exclude alloy-node-bindings \
Expand Down
10 changes: 5 additions & 5 deletions crates/alloy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ alloy-transport-ws = { workspace = true, optional = true }
# ----------------------------------------- Configuration ---------------------------------------- #

[features]
default = ["std", "reqwest", "alloy-core/default"]
default = ["std", "reqwest", "alloy-core/default", "essentials"]

# std
std = [
Expand All @@ -76,19 +76,19 @@ std = [
"alloy-consensus?/std",
]

# essential features that enable basic network interactions out of the box.
essentials = ["contract", "provider-http", "rpc-types", "signer-local"]

# full
full = [
"consensus",
"contract",
"eips",
"essentials",
"k256",
"kzg",
"network",
"provider-http",
"provider-ws",
"provider-ipc",
"rpc-types",
"signer-local",
]

# configuration
Expand Down

0 comments on commit fac4979

Please sign in to comment.