sedimentree_core 0.17.0

Sedimentree: a hash-linked CRDT storage structure with fragments, commits, and content-addressed blobs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Conditional collection types that use `HashMap`/`HashSet` when `std` is enabled,
//! and fall back to `BTreeMap`/`BTreeSet` for `no_std` environments.

pub mod nonempty_ext;

#[cfg(feature = "std")]
mod inner {
    pub use std::collections::{HashMap as Map, HashSet as Set, hash_map::Entry};
}

#[cfg(not(feature = "std"))]
mod inner {
    pub use alloc::collections::{BTreeMap as Map, BTreeSet as Set, btree_map::Entry};
}

pub use inner::{Entry, Map, Set};