facet_generate 0.18.0

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

/// This is a comment.
/// Continued lovingly here
#[derive(Facet)]
#[repr(C)]
pub enum Colors {
    Red = 0,
    Blue = 1,
    /// Green is a cool color
    Green = 2,
}

// TODO: enable swift
crate::test! {
    Colors for kotlin, typescript
}