Deprecate #[derive(DialogueState)]

This commit is contained in:
Hirrolot 2022-04-08 00:08:05 +06:00
parent dfba097c71
commit 74d44868a6

View file

@ -21,6 +21,7 @@ use quote::{quote, ToTokens};
use syn::{parse_macro_input, DeriveInput, Fields, ItemEnum};
#[proc_macro_derive(DialogueState, attributes(handler, handler_out, store))]
#[deprecated(note = "Use teloxide::handler! instead")]
pub fn derive_dialogue_state(item: TokenStream) -> TokenStream {
let input = parse_macro_input!(item as ItemEnum);
match dialogue_state::expand(input) {