facet_generate 0.16.0

Generate Swift, Kotlin and TypeScript from types annotated with `#[derive(Facet)]`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use difficient::Diffable;
use facet::Facet;

#[derive(Facet, Clone, Debug, PartialEq, Eq)]
#[facet(rename_all = "camelCase")]
pub struct NotDiffable {}

#[derive(Facet, Clone)]
#[facet(tag = "type")]
#[facet(rename_all = "camelCase")]
#[derive(Diffable)]
#[repr(C)]
pub enum InternallyTagged {
    AnonymousStruct {
        #[diffable(atomic)]
        atomic: NotDiffable,
    },
}