Skip to content

Commit

Permalink
chore: move serde imports behind feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Genysys authored and vkgnosis committed Jun 10, 2022
1 parent eb9e523 commit e7af110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ethabi/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[cfg(feature = "full-serde")]
use serde::{Deserialize, Serialize};

#[cfg(not(feature = "std"))]
Expand Down
1 change: 1 addition & 0 deletions ethabi/src/token/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use core::fmt;

#[cfg(feature = "full-serde")]
use serde::{Deserialize, Serialize};

#[cfg(not(feature = "std"))]
Expand Down

0 comments on commit e7af110

Please sign in to comment.