Skip to content

Commit

Permalink
chore(registry): Remove the Registry Crate (#372)
Browse files Browse the repository at this point in the history
### Description

The registry crate is a binding around the `superchain-registry` repo.
It isn't related to ethereum types and just bloats `op-alloy`. This PR
deletes the registry crate since `maili-registry` provides the same
functionality.
  • Loading branch information
refcell authored Jan 9, 2025
1 parent 97d3d67 commit 941f04f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 59 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ op-alloy-genesis = { version = "0.9.2", path = "crates/genesis", default-feature
op-alloy-protocol = { version = "0.9.2", path = "crates/protocol", default-features = false }
op-alloy-consensus = { version = "0.9.2", path = "crates/consensus", default-features = false }
op-alloy-network = { version = "0.9.2", path = "crates/network", default-features = false }
op-alloy-registry = { version = "0.9.2", path = "crates/registry", default-features = false }
op-alloy-rpc-types = { version = "0.9.2", path = "crates/rpc-types", default-features = false }
op-alloy-rpc-jsonrpsee = { version = "0.9.2", path = "crates/rpc-jsonrpsee", default-features = false }
op-alloy-rpc-types-engine = { version = "0.9.2", path = "crates/rpc-types-engine", default-features = false }
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ The following crates are provided by `op-alloy`.
- [`op-alloy-genesis`][op-alloy-genesis]
- [`op-alloy-network`][op-alloy-network]
- [`op-alloy-protocol`][op-alloy-protocol]
- [`op-alloy-registry`][op-alloy-registry]
- [`op-alloy-rpc-jsonrpsee`][op-alloy-rpc-jsonrpsee]
- [`op-alloy-rpc-types-engine`][op-alloy-rpc-types-engine]
- [`op-alloy-rpc-types`][op-alloy-rpc-types]
Expand Down Expand Up @@ -57,7 +56,6 @@ Notice, provider crates do not support `no_std` compatibility.

- [`op-alloy-genesis`][op-alloy-genesis]
- [`op-alloy-protocol`][op-alloy-protocol]
- [`op-alloy-registry`][op-alloy-registry] (note: requires `serde`)
- [`op-alloy-consensus`][op-alloy-consensus]
- [`op-alloy-rpc-types`][op-alloy-rpc-types]
- [`op-alloy-rpc-types-engine`][op-alloy-rpc-types-engine]
Expand Down Expand Up @@ -95,7 +93,6 @@ shall be dual licensed as above, without any additional terms or conditions.
[op-alloy-genesis]: https://crates.io/crates/op-alloy-genesis
[op-alloy-network]: https://crates.io/crates/op-alloy-network
[op-alloy-protocol]: https://crates.io/crates/op-alloy-protocol
[op-alloy-registry]: https://crates.io/crates/op-alloy-registry
[op-alloy-rpc-jsonrpsee]: https://crates.io/crates/op-alloy-rpc-jsonrpsee
[op-alloy-rpc-types-engine]: https://crates.io/crates/op-alloy-rpc-types-engine
[op-alloy-rpc-types]: https://crates.io/crates/op-alloy-rpc-types
4 changes: 0 additions & 4 deletions crates/op-alloy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ op-alloy-consensus = { workspace = true, optional = true }
op-alloy-genesis = { workspace = true, optional = true }
op-alloy-network = { workspace = true, optional = true }
op-alloy-protocol = { workspace = true, optional = true }
op-alloy-registry = { workspace = true, optional = true }
op-alloy-rpc-jsonrpsee = { workspace = true, optional = true }
op-alloy-rpc-types-engine = { workspace = true, optional = true }
op-alloy-rpc-types = { workspace = true, optional = true }
Expand All @@ -35,15 +34,13 @@ std = [
"op-alloy-consensus?/std",
"op-alloy-genesis?/std",
"op-alloy-protocol?/std",
"op-alloy-registry?/std",
"op-alloy-rpc-types?/std",
"op-alloy-rpc-types-engine?/std",
]

full = [
"consensus",
"genesis",
"registry",
"network",
"protocol",
"rpc-types",
Expand Down Expand Up @@ -73,7 +70,6 @@ serde = [
# `no_std` support
consensus = ["dep:op-alloy-consensus"]
genesis = ["dep:op-alloy-genesis"]
registry = ["dep:op-alloy-registry"]
protocol = ["dep:op-alloy-protocol"]
rpc-types = ["dep:op-alloy-rpc-types"]
rpc-types-engine = ["dep:op-alloy-rpc-types-engine"]
Expand Down
4 changes: 0 additions & 4 deletions crates/op-alloy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ pub use op_alloy_network as network;
#[doc(inline)]
pub use op_alloy_protocol as protocol;

#[cfg(feature = "registry")]
#[doc(inline)]
pub use op_alloy_registry as registry;

#[cfg(feature = "rpc-types")]
#[doc(inline)]
pub use op_alloy_rpc_types as rpc_types;
Expand Down
24 changes: 0 additions & 24 deletions crates/registry/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions crates/registry/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions crates/registry/src/lib.rs

This file was deleted.

1 change: 0 additions & 1 deletion scripts/check_no_std.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ no_std_packages=(
op-alloy
op-alloy-consensus
op-alloy-protocol
op-alloy-registry
op-alloy-genesis
op-alloy-rpc-types
op-alloy-rpc-types-engine
Expand Down

0 comments on commit 941f04f

Please sign in to comment.