Преглед изворни кода

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.
 #![warn(if_let_rescope)]
 #![warn(keyword_idents_2024)]