#serialization #revision #bincode #version

macro revision-derive

Implements procedural macros for automatic Revision trait implementation

14 releases (breaking)

0.11.0 Feb 10, 2025
0.10.0 Aug 31, 2024
0.9.0 Aug 23, 2024
0.8.0 Jul 9, 2024
0.5.0 Aug 29, 2023

#15 in #revision

Download history 4963/week @ 2024-12-14 3115/week @ 2024-12-21 2743/week @ 2024-12-28 5435/week @ 2025-01-04 6115/week @ 2025-01-11 5183/week @ 2025-01-18 3806/week @ 2025-01-25 5392/week @ 2025-02-01 7290/week @ 2025-02-08 6685/week @ 2025-02-15 7219/week @ 2025-02-22 6759/week @ 2025-03-01 9708/week @ 2025-03-08 8719/week @ 2025-03-15 7905/week @ 2025-03-22 6033/week @ 2025-03-29

33,275 downloads per month
Used in 95 crates (via revision)

Apache-2.0

53KB
1.5K SLoC

Exports the Revisioned procedural macro attribute, and the derive procedural macro that automatically generates the Revisioned trait on structs and enums.

The Revisioned trait is automatically implemented for the following primitives: u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize, f32, f64, char, String, Vec, Arrays up to 32 elements, Option, Box, Bound, Wrapping, (A, B), (A, B, C), (A, B, C, D), (A, B, C, D, E), Duration, HashMap<K, V>, BTreeMap<K, V>, Result<T, E>, Cow<'_, T>, Decimal, regex::Regex, uuid::Uuid, chrono::Duration, chrono::DateTime, geo::Point, geo::LineString geo::Polygon, geo::MultiPoint, geo::MultiLineString, and geo::MultiPolygon.


revision-derive

Private implementation of procedural macros for revision.

docs.rs Crates.io

Dependencies

~190–620KB
~15K SLoC