Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dep): feature gate jwt in engine types #1131

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion 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"
jsonwebtoken = { version = "9.3.0", optional = true }
rand.workspace = true

[features]
default = ["jwt"]
jwt = ["dep:jsonwebtoken"]
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
Loading