-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Disable default features for reth-storage-api
in workspace manifest
#14466
Conversation
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.
smol fix:
we need std enabled int he reth-provider crate because there we impl the feature gate trait fns
made me realise that std should be explicitly enabled for all crates with pending no-std support, due to the little perf degradation that could happen with the lesser precision of Tokio time. |
run make lint-toml
idk what this is referring to |
|
what's the connection to this pr here? |
this pr makes storage api available as no-std using Tokio time, but uses std by default we haven't benchmarked with Tokio time enabled for storage api, so we use std time by default still |
#[cfg(feature = "std")] | ||
use std::time::Instant; | ||
#[cfg_attr(feature = "std", allow(unused_imports))] | ||
#[cfg(feature = "std")] | ||
use tokio::time as _; | ||
#[cfg(not(feature = "std"))] | ||
use tokio::time::Instant; |
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.
so, I overlooked this,
I want to undo that, this isn't useful
…paradigmxyz#14466) Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Disables default features for
reth-storage-api
in workspace manifest, ref #14465