chore: initial draft of proc macros

This commit is contained in:
2026-07-08 17:30:52 -04:00
parent 8e43ff75a5
commit c637ad2d76
8 changed files with 71 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
[package]
name = "python-utils-macros"
version = "0.1.0"
edition = "2024"
license.workspace = true
[lib]
proc-macro = true
[dependencies]
python-utils-macros-impl = { path = "../python-utils-macros-impl" }

View File

@@ -0,0 +1,6 @@
use proc_macro::proc_macro_derive;
#[proc_macro_derive(PyFromStr)]
pub fn py_from_str(input: TokenStream) -> TokenStream {
python_utils_macros_impl::py_from_str(input.into()).into()
}