Skip to content

realbigsean/superstruct

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperStruct

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.

Its design is informed by the implementation of blockchain consensus upgrades, which often change core data structures by removing some old fields and replacing them with new ones.

Currently the library is unstable and evolving rapidly alongside Lighthouse as it becomes hard-fork aware.

You can run cargo expand --test basic to see the code generated for tests/basic.rs.

About

Rust library for quasi subtyping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%