#[macro_export]
macro_rules! cfg_windows {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), windows))]
#[cfg_attr(docsrs, doc(cfg(windows)))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_unix {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), unix))]
#[cfg_attr(docsrs, doc(cfg(unix)))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_docs {
($($item:item)*) => {
$(
#[cfg(all(doc, docsrs))]
$item
)*
};
}
#[macro_export]
macro_rules! cfg_feature_std {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), feature = "std"))]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_feature_nostd {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), not(feature = "std")))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_feature_alloc {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), feature = "alloc"))]
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_feature_serde {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), feature = "serde"))]
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_feature_bits {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), feature = "bits"))]
#[cfg_attr(docsrs, doc(cfg(feature = "bits")))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_feature_egui {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), feature = "egui"))]
#[cfg_attr(docsrs, doc(cfg(feature = "egui")))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_feature_plots {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), feature = "plots"))]
#[cfg_attr(docsrs, doc(cfg(feature = "plots")))]
$item
)*
}
}
#[macro_export]
macro_rules! cfg_feature_git {
($($item:item)*) => {
$(
#[cfg(any(all(doc, docsrs), feature = "git"))]
#[cfg_attr(docsrs, doc(cfg(feature = "git")))]
$item
)*
}
}