-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
226 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
[package] | ||
name = "reth-op" | ||
version.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
license.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
# reth | ||
reth-primitives-traits = { workspace = true, features = ["op"] } | ||
reth-chainspec.workspace = true | ||
reth-network = { workspace = true, optional = true } | ||
reth-provider = { workspace = true, optional = true } | ||
reth-db = { workspace = true, optional = true, features = ["mdbx", "op"] } | ||
reth-storage-api = { workspace = true, optional = true } | ||
reth-node-api = { workspace = true, optional = true } | ||
reth-consensus = { workspace = true, optional = true } | ||
reth-consensus-common = { workspace = true, optional = true } | ||
reth-evm = { workspace = true, optional = true } | ||
reth-rpc = { workspace = true, optional = true } | ||
reth-rpc-api = { workspace = true, optional = true } | ||
reth-rpc-eth-types = { workspace = true, optional = true } | ||
reth-rpc-builder = { workspace = true, optional = true } | ||
|
||
# reth-op | ||
reth-optimism-primitives.workspace = true | ||
reth-optimism-chainspec.workspace = true | ||
reth-optimism-consensus = { workspace = true, optional = true } | ||
reth-optimism-evm = { workspace = true, optional = true } | ||
reth-optimism-node = { workspace = true, optional = true } | ||
reth-optimism-rpc = { workspace = true, optional = true } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"reth-chainspec/std", | ||
"reth-optimism-primitives/std", | ||
"reth-primitives-traits/std", | ||
"reth-consensus?/std", | ||
"reth-consensus-common?/std", | ||
] | ||
arbitrary = [ | ||
"std", | ||
"reth-chainspec/arbitrary", | ||
"reth-optimism-primitives/arbitrary", | ||
"reth-primitives-traits/arbitrary", | ||
"reth-db?/arbitrary", | ||
] | ||
|
||
test-utils = [ | ||
"reth-chainspec/test-utils", | ||
"reth-consensus?/test-utils", | ||
"reth-db?/test-utils", | ||
"reth-evm?/test-utils", | ||
"reth-network?/test-utils", | ||
"reth-optimism-node?/test-utils", | ||
"reth-primitives-traits/test-utils", | ||
"reth-provider?/test-utils", | ||
] | ||
|
||
full = ["consensus", "evm", "node", "provider", "rpc"] | ||
|
||
alloy-compat = [] | ||
consensus = ["dep:reth-consensus", "dep:reth-consensus-common", "dep:reth-optimism-consensus"] | ||
evm = ["dep:reth-evm", "dep:reth-optimism-evm"] | ||
node-api = ["dep:reth-node-api"] | ||
node = ["provider", "consensus", "evm", "node-api", "dep:reth-optimism-node", "rpc"] | ||
rpc = ["dep:reth-rpc", "dep:reth-rpc-builder", "dep:reth-rpc-api", "dep:reth-rpc-eth-types", "dep:reth-optimism-rpc"] | ||
js-tracer = ["rpc", "reth-rpc/js-tracer"] | ||
network = ["dep:reth-network"] | ||
provider = ["storage-api", "dep:reth-provider", "dep:reth-db"] | ||
storage-api = ["dep:reth-storage-api"] | ||
optimism = [ | ||
"reth-db?/optimism", | ||
"reth-optimism-consensus?/optimism", | ||
"reth-optimism-evm?/optimism", | ||
"reth-optimism-node?/optimism", | ||
"reth-optimism-primitives/optimism", | ||
"reth-optimism-rpc?/optimism", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
//! Optimism meta crate that provides access to commonly used reth dependencies. | ||
#![doc( | ||
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", | ||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", | ||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" | ||
)] | ||
#![cfg_attr(not(test), warn(unused_crate_dependencies))] | ||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] | ||
#![cfg_attr(not(feature = "std"), no_std)] | ||
#![allow(unused_crate_dependencies)] | ||
// The `optimism` feature must be enabled to use this crate. | ||
#![cfg(feature = "optimism")] | ||
|
||
/// Re-exported ethereum types | ||
#[doc(inline)] | ||
pub use reth_optimism_primitives::*; | ||
|
||
/// Re-exported reth primitives | ||
pub mod primitives { | ||
#[doc(inline)] | ||
pub use reth_primitives_traits::*; | ||
} | ||
|
||
/// Re-exported consensus types | ||
#[cfg(feature = "consensus")] | ||
pub mod consensus { | ||
#[doc(inline)] | ||
pub use reth_consensus::*; | ||
#[doc(inline)] | ||
pub use reth_consensus_common::*; | ||
#[doc(inline)] | ||
pub use reth_optimism_consensus::*; | ||
} | ||
|
||
/// Re-exported from `reth_chainspec` | ||
pub mod chainspec { | ||
#[doc(inline)] | ||
pub use reth_chainspec::*; | ||
#[doc(inline)] | ||
pub use reth_optimism_chainspec::*; | ||
} | ||
|
||
/// Re-exported evm types | ||
#[cfg(feature = "evm")] | ||
pub mod evm { | ||
#[doc(inline)] | ||
pub use reth_optimism_evm::*; | ||
|
||
#[doc(inline)] | ||
pub use reth_evm as primitives; | ||
} | ||
|
||
/// Re-exported reth network types | ||
#[cfg(feature = "network")] | ||
pub mod network { | ||
#[doc(inline)] | ||
pub use reth_network::*; | ||
} | ||
|
||
/// Re-exported reth provider types | ||
#[cfg(feature = "provider")] | ||
pub mod provider { | ||
#[doc(inline)] | ||
pub use reth_provider::*; | ||
|
||
#[doc(inline)] | ||
pub use reth_db as db; | ||
} | ||
|
||
/// Re-exported reth storage api types | ||
#[cfg(feature = "storage-api")] | ||
pub mod storage { | ||
#[doc(inline)] | ||
pub use reth_storage_api::*; | ||
} | ||
|
||
/// Re-exported ethereum node | ||
#[cfg(feature = "node-api")] | ||
pub mod node { | ||
#[doc(inline)] | ||
pub use reth_node_api as api; | ||
#[cfg(feature = "node")] | ||
pub use reth_optimism_node::*; | ||
} | ||
|
||
/// Re-exported rpc types | ||
#[cfg(feature = "rpc")] | ||
pub mod rpc { | ||
#[doc(inline)] | ||
pub use reth_optimism_rpc::*; | ||
#[doc(inline)] | ||
pub use reth_rpc::*; | ||
|
||
#[doc(inline)] | ||
pub use reth_rpc_api as api; | ||
#[doc(inline)] | ||
pub use reth_rpc_builder as builder; | ||
#[doc(inline)] | ||
pub use reth_rpc_eth_types as eth; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,6 +142,7 @@ reth-codec = [ | |
] | ||
op = [ | ||
"dep:op-alloy-consensus", | ||
"reth-codecs?/op", | ||
] | ||
rayon = [ | ||
"dep:rayon", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters