| Crates.io | rgb-strict-types |
| lib.rs | rgb-strict-types |
| version | 1.0.0 |
| created_at | 2025-11-26 15:16:01.803171+00 |
| updated_at | 2025-11-27 14:43:15.898769+00 |
| description | Strict types: confined generalized algebraic data types (GADT) |
| homepage | |
| repository | https://github.com/rgb-protocol/rgb-strict-types |
| max_upload_size | |
| id | 1951535 |
| size | 397,826 |
This is a set of libraries for working with abstract syntax trees and libraries of strict types – type system made with category theory which ensures provable properties and bounds for the in-memory and serialized type representation.
Strict types is a formal notation for defining and serializing generalized algebraic data types (GADT) in a deterministic and confined way. It is developed with type theory in mind.
Strict Types are:
To learn more about strict encoding read the spec.
Strict types works with type definitions. It allows:
The library allows to generate & compile strict type libraries (STL) from rust
types implementing StrictEncoding trait -- and ensures that the
deserialization with StrictDecode follows the same memory and semantic layout.