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

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

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

#566 in Procedural macros

Download history 26/week @ 2024-07-25 4/week @ 2024-08-01 23/week @ 2024-09-12 7/week @ 2024-09-19 1/week @ 2024-09-26

229 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
~36K SLoC