#pyo3 #python #constructor #macro #python-bindings #pyclass

macro pyo3_macro

A Rust macro crate builds PyO3-compatible Rust protobuf and gRPC structures. So you can easily expose your generated protobuf code as Pythin binding through PyO3. Features Macro with_new that implements __new__ constructor for Rust Python binding. Macro with_pyclass that adds customized pyclass attributes macro for your Rust structures.”

5 releases

new 0.1.4 Jun 27, 2024
0.1.3 Jun 27, 2024
0.1.2 Jun 23, 2024
0.1.1 Jun 7, 2024
0.1.0 Jun 2, 2024

#367 in Procedural macros

Download history 240/week @ 2024-06-01 46/week @ 2024-06-08 4/week @ 2024-06-15 293/week @ 2024-06-22

583 downloads per month

Apache-2.0

25KB
119 lines

PyO3-macro

A Rust macro crate builds PyO3-compatible Rust protobuf and gRPC structures. So you can easily expose your generated protobuf code as Pythin binding through PyO3.

Features

  1. Macro with_new that implements __new__ constructor for Rust Python binding.
  2. Macro with_pyclass that add pyclass attributes macro for your structures.

Dependencies

~1.5MB
~35K SLoC