You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
otherwise, the crate does not compile without the serde feature. cf. #191 and #167
in lieu of adding a lot of code to what is already a bit of a noisy codebase (with all the const generics), I think at the moment I favor just ungating the derive(serde::*) directives for now and just require serde
while it does mean pulling in more crates than could otherwise be possible, serde is a common one and is usually in the closure of whatever crates a consumer of this library would already be using, so for most use cases it wouldn't matter. and it doesn't stop us from supporting no-std as serde has a capability for this as well.
so this issue will be closed once we have made the edits to remove all cfg_attr(serde) attributes.
The text was updated successfully, but these errors were encountered:
I had originally intended to make the
serde
feature optional, and gated thederive(serde::{Serialize,Deserialize})
attributes behind it, like thisethereum-consensus/ethereum-consensus/src/altair/beacon_block.rs
Line 11 in 8c204e1
But it turns out this conditional attribute would also need to apply to each
serde
directive as well, like thisethereum-consensus/ethereum-consensus/src/altair/beacon_block.rs
Line 44 in 8c204e1
otherwise, the crate does not compile without the
serde
feature. cf. #191 and #167in lieu of adding a lot of code to what is already a bit of a noisy codebase (with all the const generics), I think at the moment I favor just ungating the
derive(serde::*)
directives for now and just requireserde
while it does mean pulling in more crates than could otherwise be possible,
serde
is a common one and is usually in the closure of whatever crates a consumer of this library would already be using, so for most use cases it wouldn't matter. and it doesn't stop us from supportingno-std
asserde
has a capability for this as well.so this issue will be closed once we have made the edits to remove all
cfg_attr(serde)
attributes.The text was updated successfully, but these errors were encountered: