py-rs 0.1.1

generate python bindings from rust types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(dead_code)]
use py_rs::PY;

#[derive(PY)]
#[py(export, export_to = "list/")]
struct List {
    data: Option<Vec<u32>>,
}

#[test]
fn list() {
    assert_eq!(List::decl(), "type List = { data: Array<number> | null, };");
}