Skip to content

Commit

Permalink
enable serde feature in no_std (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <junkxdev@gmail.com>

Signed-off-by: Jun Kimura <junkxdev@gmail.com>
  • Loading branch information
bluele authored and claravanstaden committed Jan 17, 2023
1 parent a1d8e74 commit 4c3b9e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ssz-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mod lib {
pub use self::iter::Enumerate;

#[cfg(not(feature = "std"))]
pub use alloc::{vec, vec::Vec};
pub use alloc::{format, string::String, vec, vec::Vec};

#[cfg(feature = "std")]
pub use std::vec::Vec;
Expand Down
2 changes: 1 addition & 1 deletion ssz-rs/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{SimpleSerialize, SimpleSerializeError, Sized};
#[cfg(feature = "serde")]
use serde::ser::SerializeSeq;
#[cfg(feature = "serde")]
use std::marker::PhantomData;
use core::marker::PhantomData;

#[derive(Debug)]
pub enum ListError {
Expand Down
2 changes: 1 addition & 1 deletion ssz-rs/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{SerializeError, SimpleSerialize, SimpleSerializeError, Sized};
#[cfg(feature = "serde")]
use serde::ser::SerializeSeq;
#[cfg(feature = "serde")]
use std::marker::PhantomData;
use core::marker::PhantomData;

#[derive(Debug)]
pub enum VectorError {
Expand Down

0 comments on commit 4c3b9e5

Please sign in to comment.