mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2026-03-03 07:00:53 +01:00
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.
13 lines
202 B
TOML
13 lines
202 B
TOML
[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 }
|