Sfoglia il codice sorgente

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

Armani Ferrante 4 anni fa
parent
commit
7a367f3f5c
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      lang/attribute/state/src/lib.rs

+ 4 - 0
lang/attribute/state/src/lib.rs

@@ -23,6 +23,10 @@ use syn::parse_macro_input;
 /// ```
 /// ```
 ///
 ///
 /// For more, see the [`account`](./attr.account.html) attribute.
 /// 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]
 #[proc_macro_attribute]
 pub fn state(
 pub fn state(
     args: proc_macro::TokenStream,
     args: proc_macro::TokenStream,