From fa4b578dac294b797a742e28b3b63947f40acd53 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sun, 25 May 2025 21:39:54 +0200 Subject: [PATCH] Re-export hashbrown with the "raw-api" feature --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2a9c6206..59c4eb3a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,13 +24,17 @@ pub mod rayon { #[cfg(not(feature = "raw-api"))] use crate::lock::RwLock; - #[cfg(feature = "raw-api")] pub use crate::lock::{RawRwLock, RwLock}; + use crate::mapref::entry_ref::EntryRef; use crate::mapref::entry_ref::OccupiedEntryRef; use crate::mapref::entry_ref::VacantEntryRef; +#[cfg(feature = "raw-api")] +pub use hashbrown; +use hashbrown::hash_table; + use cfg_if::cfg_if; use core::fmt; use core::hash::{BuildHasher, Hash, Hasher}; @@ -38,7 +42,6 @@ use core::iter::FromIterator; use core::ops::{BitAnd, BitOr, Shl, Shr, Sub}; use crossbeam_utils::CachePadded; pub use equivalent::Equivalent; -use hashbrown::hash_table; use iter::{Iter, IterMut, OwningIter}; use lock::{RwLockReadGuardDetached, RwLockWriteGuardDetached}; pub use mapref::entry::{Entry, OccupiedEntry, VacantEntry};