nybbles/
lib.rs

1#![doc = include_str!("../README.md")]
2#![doc(
3    html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
4    html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
5)]
6#![warn(
7    missing_copy_implementations,
8    missing_debug_implementations,
9    missing_docs,
10    unreachable_pub,
11    clippy::missing_const_for_fn,
12    rustdoc::all
13)]
14#![cfg_attr(not(test), warn(unused_crate_dependencies))]
15#![deny(unused_must_use, rust_2018_idioms)]
16#![cfg_attr(not(feature = "std"), no_std)]
17#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
18#![cfg_attr(feature = "nightly", feature(core_intrinsics), allow(internal_features))]
19
20#[macro_use]
21#[allow(unused_imports)]
22extern crate alloc;
23
24mod nibbles;
25pub use nibbles::{
26    common_prefix_length, get_byte, get_byte_unchecked, pack_to, pack_to_unchecked, smallvec_with,
27    Nibbles,
28};