Skip to content

Commit

Permalink
remove derivative dep (#34)
Browse files Browse the repository at this point in the history
* chore: remove derivate dep

* Delete custom impls

---------

Co-authored-by: Michael Sproul <michael@sigmaprime.io>
  • Loading branch information
mattsse and michaelsproul authored Nov 15, 2024
1 parent 545f25a commit a751223
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion ssz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ itertools = "0.13.0"
serde = "1.0.0"
serde_derive = "1.0.0"
typenum = "1.12.0"
derivative = "2.1.1"
arbitrary = { version = "1.0", features = ["derive"], optional = true }

[features]
Expand Down
4 changes: 1 addition & 3 deletions ssz/src/bitfield.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::{Decode, DecodeError, Encode};
use core::marker::PhantomData;
use derivative::Derivative;
use serde::de::{Deserialize, Deserializer};
use serde::ser::{Serialize, Serializer};
use serde_utils::hex::{encode as hex_encode, PrefixedHexVisitor};
Expand Down Expand Up @@ -111,8 +110,7 @@ pub type BitVector<N> = Bitfield<Fixed<N>>;
/// The internal representation of the bitfield is the same as that required by SSZ. The lowest
/// byte (by `Vec` index) stores the lowest bit-indices and the right-most bit stores the lowest
/// bit-index. E.g., `smallvec![0b0000_0001, 0b0000_0010]` has bits `0, 9` set.
#[derive(Clone, Debug, Derivative)]
#[derivative(PartialEq, Eq, Hash(bound = ""))]
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
pub struct Bitfield<T> {
bytes: SmallVec<[u8; SMALLVEC_LEN]>,
len: usize,
Expand Down

0 comments on commit a751223

Please sign in to comment.