metrics: properly annotate required features for 64-bit-only metrics (#7449)

This commit is contained in:
Jess Izen
2025-07-09 15:03:22 +02:00
committed by GitHub
parent 7dd4d8a30e
commit 888ee60e41
2 changed files with 573 additions and 536 deletions
+21
View File
@@ -1,5 +1,26 @@
#![allow(unused_macros)]
/// Allows specifying arbitrary combinations of features and config flags,
/// which are also propagated to `docsrs` config.
///
/// Each contained item will have the annotations applied
///
/// ## Example usage:
/// ```no-compile
/// feature! {
/// #![any(
/// feature = "process",
/// feature = "sync",
/// feature = "rt",
/// tokio_unstable
/// )]
/// /// docs
/// pub struct MyStruct {};
/// /// docs
/// pub struct AnotherStruct {};
/// }
/// ```
///
macro_rules! feature {
(
#![$meta:meta]
File diff suppressed because it is too large Load Diff