Skip to content

docs: clarify node-bindings feature for Anvil examples - #192

Merged
mattsse merged 1 commit into
mainfrom
mattsse/clarify-node-bindings-feature
Sep 23, 2026
Merged

mattsse merged 1 commit into
mainfrom
mattsse/clarify-node-bindings-feature

Conversation

@mattsse

@mattsse mattsse commented Sep 23, 2026

Copy link
Copy Markdown
Member

The quick start examples on the getting started page and the landing page start Anvil from Rust via connect_anvil_with_config and AnvilApi, but nothing said that these live behind the node-bindings feature, which the default feature set does not enable. The installation page also imports alloy::node_bindings::Anvil without mentioning the flag, so readers following the pages in order hit a missing import or method on their first build.

This adds a short note at the top of the quick start explaining which example needs node-bindings, which needs provider-ws, and how to enable them with cargo add, plus a one-line prerequisite for each example. The installation page and landing page get the same pointer next to the code that needs it.

While checking this I compiled the three quick start examples against alloy 2.4.2: the first one builds on the defaults, the Anvil fork example needs exactly node-bindings, and the subscription example needs provider-ws. The feature flag reference described node-bindings as not including the provider helpers, which is wrong, since it enables alloy-provider/anvil-node and with it connect_anvil* and AnvilApi, so the two Anvil rows are corrected accordingly.

Closes alloy-rs/alloy#3107

@mattsse
mattsse merged commit 9f4a91a into main Sep 23, 2026
2 checks passed
@mattsse
mattsse deleted the mattsse/clarify-node-bindings-feature branch September 23, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Specify needing to add node-bindings feature

1 participant