ipld_core/
lib.rs

1#![allow(clippy::needless_doctest_main)]
2#![doc = include_str!("../README.md")]
3#![deny(missing_docs)]
4#![deny(warnings)]
5#![cfg_attr(not(feature = "std"), no_std)]
6
7extern crate alloc;
8
9#[cfg(all(feature = "std", feature = "codec"))]
10pub mod codec;
11pub mod convert;
12pub mod ipld;
13#[cfg(feature = "serde")]
14pub mod serde;
15
16#[cfg(feature = "arb")]
17mod arb;
18mod macros;
19
20pub use cid;
21
22// This is a hack to get those types working in the `ipld!` macro with and without `no_std`. The
23// idea is from
24// https://stackoverflow.com/questions/71675411/refer-to-an-extern-crate-in-macro-expansion/71675639#71675639
25#[doc(hidden)]
26pub mod __private_do_not_use {
27    pub use alloc::{collections::BTreeMap, vec};
28}