Index: Cargo.toml ================================================================== --- Cargo.toml +++ Cargo.toml @@ -1,8 +1,8 @@ [package] name = "idbag" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "0BSD" categories = [ "data-structures" ] keywords = [ "bag", "identifier" ] repository = "https://repos.qrnch.tech/pub/idbag" @@ -14,15 +14,12 @@ ".fslckout", "www", "rustfmt.toml" ] -[features] -dev-docs = [] - [dependencies] -hashbrown = { version = "0.14.0" } +hashbrown = { version = "0.14.3" } parking_lot = { version = "0.12.1" } [package.metadata.docs.rs] rustdoc-args = ["--generate-link-to-definition"] Index: src/lib.rs ================================================================== --- src/lib.rs +++ src/lib.rs @@ -38,17 +38,10 @@ use parking_lot::Mutex; use hashbrown::HashSet; /// Internal representation of the IdBag. -#[cfg_attr( - feature = "dev-docs", - doc = r#" -# Internals -This is public only to enable sharing internal state between multible [`IdBag`] objects. -"# -)] #[derive(Default)] pub struct InnerBag { set: HashSet, idgen: u32 } @@ -211,21 +204,16 @@ } } } /// An atomically referenced counted version of [`Id`]. -#[cfg_attr( - feature = "dev-docs", - doc = r#" -# Internals -This exists primarily because we want to be able to look up `Arc`'s by -`u32`'s in `HashMap`'s. While it is possible to look up `Id`'s in -`HashMap`'s using `&u32`'s, it doesn't work for `Arc`'s. To workaround -we create an `ArcId` newtype that implements `Borrow`, which passes it -through the `Arc` to it's inner `Id`. -"# -)] +/// +/// This exists primarily because we want to be able to look up `Arc`'s by +/// `u32`'s in `HashMap`'s. While it is possible to look up `Id`'s in +/// `HashMap`'s using `&u32`'s, it doesn't work for `Arc`'s. To workaround +/// we create an `ArcId` newtype that implements `Borrow`, which passes it +/// through the `Arc` to it's inner `Id`. #[derive(Clone, Hash, PartialEq, Eq)] #[repr(transparent)] pub struct ArcId(Arc); impl fmt::Debug for ArcId { Index: www/changelog.md ================================================================== --- www/changelog.md +++ www/changelog.md @@ -1,22 +1,38 @@ # Change Log ## [Unreleased] +[Details](/vdiff?from=idbag-0.1.2&to=trunk) + ### Added ### Changed ### Removed +--- + +## [0.1.2] - 2024-01-23 + +[Details](/vdiff?from=idbag-0.1.1&to=idbag-0.1.2) + +### Removed + +- Removed `dev-docs` feature. + +--- ## [0.1.1] - 2023-08-30 + +[Details](/vdiff?from=idbag-0.1.0&to=idbag-0.1.1) ### Changed - [infrastructure] Request that docs.rs generate links to definitions. +--- ## [0.1.0] - 2023-08-29 - Initial release