-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(alloy): add "full"
feature flag
#877
Conversation
… rpc flags internally but require the user to import the rpc client for WsConnect / IpcConnect manually
full = [ | ||
"consensus", | ||
"contract", | ||
"eips", | ||
"k256", | ||
"kzg", | ||
"network", | ||
"provider-http", # includes `providers` | ||
"provider-ws", # includes `providers` | ||
"provider-ipc", # includes `providers` | ||
"rpc-types", # includes `rpc-types-eth` | ||
"signer-wallet", # includes `signers` | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In examples
we did not need any specific flags from core
as all commonly used functionality is already available by default
Moving to review, open to feedback / suggestions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it out and I like this as a set of minimal features. I wonder if we could trim KZG, but seems fine for now.
"contract", | ||
"eips", | ||
"k256", | ||
"kzg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo this makes sense to include in full
full will probably include more stuff than necessary but for convenience this is okay imo.
* add initial setup, make sure to enable rpc-client when setting rpc-client-ws flag * fix `alloy-serde` definition in `serde` flag * re-export alloy_rpc_client as client in the provider as we enable the rpc flags internally but require the user to import the rpc client for WsConnect / IpcConnect manually * only selectively enable WsConnect, IpcConnect - make available in root * add eips and kzg for 4844 tx and access lists * remove rpc-client from list
Motivation
Closes #876
Solution
rpc-client
when enablingrpc-client-ws
so that you do not also need to add therpc-client
flag if you ifrpc-client-ws
is used. This behavior is in line with the other feature flags.rpc-client
features (WsConnect
) and (IpcConnect
) directly available (if defined as flag) on the provider. Previously this required separately defining therpc-client
flag and importing it from therpc::client
namespace.Related PR (see impact of proposed changes): alloy-rs/examples#106
PR Checklist