priority-semaphore 0.2.0

Runtime-agnostic priority-aware async semaphore for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Misc helpers (feature gates, doc_cfg, etc.).

/// Conditionally add `#[doc(cfg(feature = $feat))]`.
#[macro_export]
macro_rules! doc_cfg {
    ($feat:literal, $item:item) => {
        #[cfg_attr(docsrs, doc(cfg(feature = $feat)))]
        $item
    };
}