Skip to content

Commit

Permalink
chore(dep): feature gate jwt in engine types (#1131)
Browse files Browse the repository at this point in the history
* chore(dep): feature gate jwt in engine types

* rm rand
  • Loading branch information
mattsse authored Aug 6, 2024
1 parent 512c8ad commit 0c998d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions crates/rpc-types-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ thiserror.workspace = true
jsonrpsee-types = { version = "0.24", optional = true }

# jwt
jsonwebtoken = "9.3.0"
rand.workspace = true
jsonwebtoken = { version = "9.3.0", optional = true }
rand = { workspace = true, optional = true }

[features]
default = ["jwt"]
jwt = ["dep:jsonwebtoken", "dep:rand"]
jsonrpsee-types = ["dep:jsonrpsee-types"]
ssz = [
"dep:ethereum_ssz",
Expand Down
6 changes: 5 additions & 1 deletion crates/rpc-types-engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@
mod cancun;
mod forkchoice;
mod identification;
#[cfg(feature = "jwt")]
mod jwt;
mod optimism;
pub mod payload;
mod transition;

pub use self::{
cancun::*, forkchoice::*, identification::*, jwt::*, optimism::*, payload::*, transition::*,
cancun::*, forkchoice::*, identification::*, optimism::*, payload::*, transition::*,
};

#[cfg(feature = "jwt")]
pub use self::jwt::*;

#[doc(inline)]
pub use alloy_eips::eip6110::DepositRequest as DepositRequestV1;

Expand Down

0 comments on commit 0c998d3

Please sign in to comment.