#compatibility #schema #subtype #macro

macro superstruct

Versioned data types with minimal boilerplate

8 breaking releases

new 0.9.0 Apr 12, 2025
0.8.0 May 30, 2024
0.7.0 Dec 6, 2022
0.6.0 Oct 4, 2022
0.2.0 Apr 30, 2021

#607 in Rust patterns

Download history 1266/week @ 2024-12-21 1597/week @ 2024-12-28 4876/week @ 2025-01-04 4892/week @ 2025-01-11 3544/week @ 2025-01-18 3513/week @ 2025-01-25 5486/week @ 2025-02-01 5355/week @ 2025-02-08 4147/week @ 2025-02-15 4880/week @ 2025-02-22 2976/week @ 2025-03-01 3823/week @ 2025-03-08 4730/week @ 2025-03-15 4992/week @ 2025-03-22 4972/week @ 2025-03-29 5746/week @ 2025-04-05

20,808 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

54KB
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

~1–1.5MB
~33K SLoC