pyo3-gated 0.1.2

Attribute macros to expose Rust types to Python via PyO3 from a single definition - no duplicate structs or impl blocks.
Documentation
1
2
3
4
5
6
7
8
use pyo3_gated::py_compat_enum;

#[py_compat_enum(pyfunction_args(signature = ()))]
pub enum Color {
    Red,
}

fn main() {}