#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

#668 in Rust patterns

Download history 3005/week @ 2024-07-24 2445/week @ 2024-07-31 2794/week @ 2024-08-07 2697/week @ 2024-08-14 3113/week @ 2024-08-21 3007/week @ 2024-08-28 3853/week @ 2024-09-04 3834/week @ 2024-09-11 4883/week @ 2024-09-18 3008/week @ 2024-09-25 2956/week @ 2024-10-02 3241/week @ 2024-10-09 4307/week @ 2024-10-16 3774/week @ 2024-10-23 3011/week @ 2024-10-30 1328/week @ 2024-11-06

13,036 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