⚠️ Internal Docs ⚠️ Not Public API πŸ‘‰ Official Docs Here
Expand description

This crate contains the implementation of the proc macro attributes

Modules

defspyproto

Code generation for the function that initializes a python module and adds classes and function.

pyprotopyproto

Structs

The parsed arguments of the pyclass macro

Enums

The mechanism used to collect #[pymethods] into the type object

Functions

Derive FromPyObject for enums and structs.

Collects all #[doc = β€œβ€¦β€] attributes into a TokenStream evaluating to a null-terminated string e.g. concat!(β€œβ€¦β€, β€œ\n”, β€œ\0”)

Finds and takes care of the #[pyfn(…)] in #[pymodule]

Generates the function that is called by the python interpreter to initialize the native module