From 8371f595176e0522d920d01ef9d47f5dcbc80f56 Mon Sep 17 00:00:00 2001
From: David Tolnay
For conditional inclusion of attributes; analogous to `cfg_attr`.
+- `rustversion::cfg!(`selector`)`
+ —
+ An expression form of any of the above attributes; for example
+ *if rustversion::cfg!(any(stable, beta)) { ... }*.
+
## Use cases
diff --git a/src/lib.rs b/src/lib.rs
index 977fa89..7da533a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -93,6 +93,13 @@
//! cfg_attr
.
//!
+//! rustversion::cfg!(
selector)
+//! —
+//! An expression form of any of the above attributes; for example
+//! if rustversion::cfg!(any(stable, beta)) { ... }.
+//!