#schema #compatibility #macro #subtype

macro superstruct

Versioned data types with minimal boilerplate

9 releases (breaking)

0.8.0 May 30, 2024
0.7.0 Dec 6, 2022
0.6.0 Oct 4, 2022
0.5.0 May 9, 2022
0.2.0 Apr 30, 2021

#678 in Rust patterns

Download history 3331/week @ 2024-08-22 2813/week @ 2024-08-29 3794/week @ 2024-09-05 4479/week @ 2024-09-12 4435/week @ 2024-09-19 2892/week @ 2024-09-26 2838/week @ 2024-10-03 3782/week @ 2024-10-10 3782/week @ 2024-10-17 3867/week @ 2024-10-24 2793/week @ 2024-10-31 1269/week @ 2024-11-07 1585/week @ 2024-11-14 2388/week @ 2024-11-21 3007/week @ 2024-11-28 2287/week @ 2024-12-05

9,372 downloads per month
Used in 2 crates

Apache-2.0

52KB
1.5K SLoC

SuperStruct

test status crates.io

SuperStruct is a library for working with a family of related struct variants, where each variant shares some common fields, and adds in unique fields of its own.

For more information please see the SuperStruct Guide.

Project Showcase

SuperStruct is used in the following projects:

License

Apache 2.0

Dependencies

~2.5MB
~54K SLoC