37 releases

Uses new Rust 2024

0.3.20 Nov 12, 2025
0.3.19 Nov 12, 2025
0.2.17 Oct 10, 2025
0.2.16 Sep 20, 2025
0.0.2 Aug 9, 2025

#158 in #disk

Download history 316/week @ 2025-08-06 596/week @ 2025-08-13 297/week @ 2025-08-20 200/week @ 2025-08-27 612/week @ 2025-09-03 404/week @ 2025-09-10 341/week @ 2025-09-17 70/week @ 2025-09-24 114/week @ 2025-10-01 227/week @ 2025-10-08 60/week @ 2025-10-15 53/week @ 2025-10-22 23/week @ 2025-10-29 21/week @ 2025-11-05 25/week @ 2025-11-12 22/week @ 2025-11-19

100 downloads per month
Used in 14 crates (via vecdb)

MIT license

5KB
53 lines

vecdb_derive

Derive macros for vecdb compression support.

Automatically implements compression traits for custom wrapper types, enabling them to work with CompressedVec.

Install

cargo add vecdb --features derive

Usage

use vecdb_derive::Compressable;

#[derive(Compressable)]
struct Timestamp(u64);

// Now works with CompressedVec
let mut vec: CompressedVec<usize, Timestamp> = ...;
vec.push(Timestamp(12345));

#[derive(Compressable)]

Implements Compressable for single-field tuple structs. The wrapper inherits compression characteristics from the inner type.

Requirements:

  • Must be a tuple struct with exactly one field
  • Inner type must implement Compressable

Dependencies

~140–530KB
~13K SLoC