lang: Deprecate `#[state]` (#661)

This commit is contained in:
Armani Ferrante 2021-09-01 15:34:28 -07:00 committed by GitHub
parent f4f60d7fab
commit 7a367f3f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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,