Add book_bot_macros proc-macro crate
Some checks are pending
Build docker image / Build-Docker-Image (push) Waiting to run
rust-clippy analyze / Run rust-clippy analyzing (push) Waiting to run

Introduce log_handler attribute macro that injects tracing logs into
handler functions. It extracts user_id from Message (optionally) or
CallbackQuery and logs handler name; falls back to logging handler only.
This commit is contained in:
2026-03-02 20:11:41 +01:00
parent ee3a2cdfc7
commit 155dc9b1ee
2 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
[package]
name = "book_bot_macros"
version = "0.1.0"
edition = "2021"
[lib]
proc-macro = true
[dependencies]
syn = { workspace = true }
quote = { workspace = true }
proc-macro2 = { workspace = true }