py-rs 0.1.1

generate python bindings from rust types
Documentation
#![allow(dead_code)]

use py_rs::PY;

#[derive(PY)]
#[py(export, export_to = "references/")]
struct FullOfRefs<'a> {
    str_slice: &'a str,
    ref_slice: &'a [&'a str],
    num_ref: &'a i32,
}

#[test]
fn references() {
    assert_eq!(
        FullOfRefs::inline(),
        "{ str_slice: string, ref_slice: Array<string>, num_ref: number, }"
    )
}