cpy_module!() { /* proc-macro */ }
Expand description

Macro used to export the python module

Example

cpy_module!(
    name = example, // Module name
    types = [Material, Size2D, Tire], // Structures and Enums to be exported
    functions = [ // Functions to be accessed from python
        create_random_tire,
        format_wheel_identifier,
        format_size_of_wheels,
        func_with_no_return,
        wheel_size_aspect
    ]
);