beekem 0.2.0

BeeKEM: a concurrent variant of TreeKEM for Continuous Group Key Agreement
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Conditional collection types that use `HashMap`/`HashSet` when `std` is enabled,
//! and fall back to `BTreeMap`/`BTreeSet` for `no_std` environments.

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

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

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