mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
metrics: properly annotate required features for 64-bit-only metrics (#7449)
This commit is contained in:
parent
7dd4d8a30e
commit
888ee60e41
@ -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
Loading…
x
Reference in New Issue
Block a user