mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2026-03-03 07:00:53 +01:00
Add book_bot_macros proc-macro crate
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:
12
book_bot_macros/Cargo.toml
Normal file
12
book_bot_macros/Cargo.toml
Normal 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 }
|
||||
Reference in New Issue
Block a user