purescript_waterslide 0.3.1

Generate Purescript types from your Rust types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate uuid;

use purs_constructor::{AsPursConstructor, PursConstructor};

impl AsPursConstructor for uuid::Uuid {
    fn as_purs_constructor() -> PursConstructor {
        PursConstructor {
            module: None,
            name: "String".to_string(),
            parameters: vec![],
        }
    }
}