sval 0.3.1

A no-std, object-safe serialization framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(feature = "serde")]
#[macro_export]
#[doc(hidden)]
macro_rules! derive_from_serde {
    (if #[cfg(feature = "serde")] { $($with:tt)* } else { $($without:tt)* } ) => {
        $($with)*
    };
}

#[cfg(not(feature = "serde"))]
#[macro_export]
#[doc(hidden)]
macro_rules! derive_from_serde {
    (if #[cfg(feature = "serde")] { $($with:tt)* } else { $($without:tt)* } ) => {
        $($without)*
    };
}