-
Notifications
You must be signed in to change notification settings - Fork 0
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
Exploration fixing features #7
Conversation
pub enum InvalidTransactionError { | ||
/// The sender does not have enough funds to cover the transaction fees | ||
#[error( | ||
#[cfg_attr(feature = "std", error( |
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.
Since we feature gated the entire enum do we have to do it for every case again?
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.
Actually I am rebasing on latest main from reth, maybe it won't be needed!
Thank you for flagging
use std::{cell::RefCell, thread_local}; | ||
#[cfg(not(feature = "std"))] | ||
use zstd::bulk::Decompressor; | ||
#[cfg(feature = "std")] | ||
use zstd::bulk::{Compressor, Decompressor}; |
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.
There is a lot of feature gating here. Instead of use
on top of the file could we just use the full path.
For example instead of:
[cfg(feature = "std")]
use zstd::bulk::{Compressor, Decompressor};
we could:
zstd::bulk::Compressor
in line 26 (the same for other imports)
Description
This PR adds
cargo hack
to validate that crates `` can compile with all feature combinations.This check fails on version
1.0.3
, so this PR also contains fixes for it.Main fixes
thiserror-no-std
in favor of originalthiserror
and feature gate it behindstd
.zstd
is only supported together withstd
, as it is very hard to getzstd
work inno_std
c-kzg
is only supported together withstd
, for similar reason aszstd
.reth-rpc-types
behinddefault
feature flag, so it is possible to compile it for riscv