From 2abe4302cb855b5e8645f314cd9a4486da735c3b Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Thu, 16 Jul 2026 08:53:22 +0100 Subject: [PATCH 1/2] Rename the feature. I umed and ahed on this one, but once it became clear to me that we have to make a major semver bump anyway, renaming the feature seemed the right thing to do at the same time. --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1643990..f41002c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,4 +17,4 @@ wincode = { version="0.5.5", features=["derive"], optional=true } rand = "0.3" [features] -bincode = ["dep:wincode"] +wincode = ["dep:wincode"] diff --git a/src/lib.rs b/src/lib.rs index c78139c..792c48d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,7 @@ extern crate num_traits; #[macro_use] extern crate serde; -#[cfg(feature = "bincode")] +#[cfg(feature = "wincode")] #[macro_use] extern crate wincode; @@ -55,7 +55,7 @@ use std::{ /// superior. #[derive(Clone, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] -#[cfg_attr(feature = "bincode", derive(SchemaRead, SchemaWrite))] +#[cfg_attr(feature = "wincode", derive(SchemaRead, SchemaWrite))] pub struct PackedVec { len: usize, bits: Vec, From ba2123c4f5d5ccb69f278e6579597a6334536712 Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Thu, 16 Jul 2026 08:54:08 +0100 Subject: [PATCH 2/2] Prepare a 2.0.0 release. --- CHANGES.md | 6 ++++++ Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f9cc50c..60bbaed 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +# packedvec 2.0.0 (2026-07-16) + +* Move from (the unmaintained) `bincode` to `wincode`. The associated feature + name has also been renamed to `wincode`. + + # packedvec 1.2.5 (2025-03-17) * Add an optional bincode dependency, which can be used as an alternative to diff --git a/Cargo.toml b/Cargo.toml index f41002c..25b57fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "packedvec" description = "Store vectors of integers efficiently" repository = "https://github.com/softdevteam/packedvec/" -version = "1.2.5" +version = "2.0.0" authors = ["Gabriela Alexandra Moldovan ", "Laurence Tratt "] readme = "README.md" license = "Apache-2.0/MIT"