netstack3_hashmap/lib.rs
1// Copyright 2025 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5//! Re-export HashMap and HashSet symbols used by netstack3 core.
6//!
7//! This crate exists because the netstack3-core wants to be `no_std` to ensure
8//! we're not taking on big OS dependencies in case it's moved to run elsewhere.
9//! However, `HashMap` and `HashSet` are *NOT* available in the `alloc` crate.
10//!
11//! Given we currently only target Fuchsia, it's unnecessary to do anything more
12//! complicated here (like using `hashbrown`) and simply having this one-off
13//! std-allowed crate is much simpler to deal with.
14//!
15//! This crate may evolve if necessary to provide different HashMap
16//! implementations based on compilation features as necessary.
17
18pub use ::std::collections::{hash_map, hash_set, HashMap, HashSet};