Repository navigation
docs: clarify node-bindings feature for Anvil examples - #192
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The quick start examples on the getting started page and the landing page start Anvil from Rust via
connect_anvil_with_configandAnvilApi, but nothing said that these live behind thenode-bindingsfeature, which the default feature set does not enable. The installation page also importsalloy::node_bindings::Anvilwithout 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 needsprovider-ws, and how to enable them withcargo 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 needsprovider-ws. The feature flag reference describednode-bindingsas not including the provider helpers, which is wrong, since it enablesalloy-provider/anvil-nodeand with itconnect_anvil*andAnvilApi, so the two Anvil rows are corrected accordingly.Closes alloy-rs/alloy#3107