Переглянути джерело

add `agave-unstable-api` deprecation warning to new `agave-fs` crate (#9012)

Trent Nelson 1 тиждень тому
батько
коміт
35c3d0ac3f
1 змінених файлів з 9 додано та 0 видалено
  1. 9 0
      fs/src/lib.rs

+ 9 - 0
fs/src/lib.rs

@@ -1,3 +1,12 @@
+#![cfg_attr(
+    not(feature = "agave-unstable-api"),
+    deprecated(
+        since = "3.1.0",
+        note = "This crate has been marked for formal inclusion in the Agave Unstable API. From \
+                v4.0.0 onward, the `agave-unstable-api` crate feature must be specified to \
+                acknowledge use of an interface that may break without warning."
+    )
+)]
 // Activate some of the Rust 2024 lints to make the future migration easier.
 // Activate some of the Rust 2024 lints to make the future migration easier.
 #![warn(if_let_rescope)]
 #![warn(if_let_rescope)]
 #![warn(keyword_idents_2024)]
 #![warn(keyword_idents_2024)]