swimos_form

SwimOS Serialization and Deserialization

2 releases

0.1.1 Sep 27, 2024
0.1.0 Jun 26, 2024
Download history 151/week @ 2024-06-24 4/week @ 2024-07-01 5/week @ 2024-07-08 29/week @ 2024-07-15 26/week @ 2024-08-12 26/week @ 2024-08-19 65/week @ 2024-08-26 24/week @ 2024-09-02 27/week @ 2024-09-09 48/week @ 2024-09-16 216/week @ 2024-09-23 84/week @ 2024-09-30 13/week @ 2024-10-07

361 downloads per month
Used in 18 crates (16 directly)

Apache-2.0

470KB
11K SLoC

SwimOS serialization

This crate contains the Form trait that describes how a type can be transformed to and from the SwimOS serialization model (described in swimos_model). This trait is implemented for most common primitive types and common standard library collections such as [Vec] and std::collections::HashMap.

A derivation macro is provided that can automatically generate implementations for straightforward struct and enum types. For instructions on how to use this, see the Form trait or the SwimOS documentation.

Dependencies

~8–15MB
~175K SLoC