#registry #bindings #configuration #superchain #superchains

no-std superchain-registry

Bindings for the Superchain Registry

1 unstable release

0.1.0 Jun 21, 2024

#132 in #registry

Download history 65/week @ 2024-06-15 42/week @ 2024-06-22

107 downloads per month

MIT license

72KB
1K SLoC

Superchain Registry Rust Bindings

This package provides Rust bindings for the Superchain Registry configuration.

Usage

Add this to your Cargo.toml:

[dependencies]
superchain-registry = "0.1.0"

Feature Flags

  • std: Uses the standard library to pull in environment variables.

Example

use superchain_registry::SUPERCHAINS;

let superchains = SUPERCHAINS.clone();

for (name, superchain) in superchains.iter() {
    println!("Loaded Superchain: {} with {} chain IDs", name, superchain.chain_ids.len());
}

Dependencies

~10MB
~184K SLoC