From 7a367f3f5c11138698cd6ff80aff066716e3918f Mon Sep 17 00:00:00 2001 From: Armani Ferrante Date: Wed, 1 Sep 2021 15:34:28 -0700 Subject: [PATCH] lang: Deprecate `#[state]` (#661) --- lang/attribute/state/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lang/attribute/state/src/lib.rs b/lang/attribute/state/src/lib.rs index ec5b87c4..6978b7ca 100644 --- a/lang/attribute/state/src/lib.rs +++ b/lang/attribute/state/src/lib.rs @@ -23,6 +23,10 @@ use syn::parse_macro_input; /// ``` /// /// For more, see the [`account`](./attr.account.html) attribute. +#[deprecated( + since = "0.14.0", + note = "#[state] will be removed in a future version. Use a PDA with static seeds instead", +)] #[proc_macro_attribute] pub fn state( args: proc_macro::TokenStream,