From ac302a422c50f2a1bf52f0dba3e4ada37a3248ff Mon Sep 17 00:00:00 2001 From: refcell Date: Sun, 10 Nov 2024 18:39:36 -0500 Subject: [PATCH 1/2] feat: super --- Cargo.lock | 8 ++++++++ crates/super/Cargo.toml | 35 +++++++++++++++++++++++++++++++++++ crates/super/README.md | 0 crates/super/src/lib.rs | 15 +++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 crates/super/Cargo.toml create mode 100644 crates/super/README.md create mode 100644 crates/super/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index c6d58e8..ce483a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4818,6 +4818,14 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +[[package]] +name = "super" +version = "0.11.0" +dependencies = [ + "superchain-derive", + "superchain-registry", +] + [[package]] name = "superchain" version = "0.11.0" diff --git a/crates/super/Cargo.toml b/crates/super/Cargo.toml new file mode 100644 index 0000000..57a387c --- /dev/null +++ b/crates/super/Cargo.toml @@ -0,0 +1,35 @@ +[package] +name = "super" +description = "Components for the Superchain" + +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +homepage.workspace = true +keywords.workspace = true +categories.workspace = true +repository.workspace = true +rust-version.workspace = true + +[lints] +workspace = true + +[dependencies] +superchain-derive = { workspace = true, optional = true } +superchain-registry = { workspace = true, optional = true } + +[features] +default = ["std", "full"] + +std = ["superchain-registry?/std"] + +full = [ + "derive", + "registry", +] + +derive = ["dep:superchain-derive"] +registry = ["dep:superchain-registry"] + +test-utils = ["superchain-derive?/test-utils"] diff --git a/crates/super/README.md b/crates/super/README.md new file mode 100644 index 0000000..e69de29 diff --git a/crates/super/src/lib.rs b/crates/super/src/lib.rs new file mode 100644 index 0000000..d1cf667 --- /dev/null +++ b/crates/super/src/lib.rs @@ -0,0 +1,15 @@ +#![doc = include_str!("../README.md")] +#![doc( + html_logo_url = "https://raw.githubusercontent.com/anton-rs/superchain/main/assets/alloy.jpg", + html_favicon_url = "https://raw.githubusercontent.com/anton-rs/superchain/main/assets/favicon.ico" +)] +#![cfg_attr(not(test), warn(unused_crate_dependencies))] +#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] + +#[cfg(feature = "derive")] +#[doc(inline)] +pub use superchain_derive as derive; + +#[cfg(feature = "registry")] +#[doc(inline)] +pub use superchain_registry as registry; From dd6a9039e303613e06909ce9cb2af871de22e0f0 Mon Sep 17 00:00:00 2001 From: refcell Date: Sun, 10 Nov 2024 18:58:42 -0500 Subject: [PATCH 2/2] fix: readme --- crates/super/README.md | 3 +++ crates/superchain/README.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/super/README.md b/crates/super/README.md index e69de29..f8ede0d 100644 --- a/crates/super/README.md +++ b/crates/super/README.md @@ -0,0 +1,3 @@ +# `super` + +A suite of `std` components for the `superchain`. diff --git a/crates/superchain/README.md b/crates/superchain/README.md index 29ce222..24e00f6 100644 --- a/crates/superchain/README.md +++ b/crates/superchain/README.md @@ -1,3 +1,3 @@ # `superchain` -A suite of `std` components for the `superchain` +A suite of `std` components for the `superchain`.