Skip to content

Commit

Permalink
feat: super
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Nov 10, 2024
1 parent c36cdb0 commit bf9926c
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions crates/super/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Empty file added crates/super/README.md
Empty file.
15 changes: 15 additions & 0 deletions crates/super/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit bf9926c

Please sign in to comment.