Add a macro conditional on integer128 support
This commit is contained in:
parent
922fadf7e3
commit
5510f758f8
15
serde/src/integer128.rs
Normal file
15
serde/src/integer128.rs
Normal file
@ -0,0 +1,15 @@
|
||||
/// TODO: rustdoc
|
||||
#[cfg(integer128)]
|
||||
#[macro_export]
|
||||
macro_rules! serde_if_integer128 {
|
||||
($($tt:tt)*) => {
|
||||
$($tt)*
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(not(integer128))]
|
||||
#[macro_export]
|
||||
#[doc(hidden)]
|
||||
macro_rules! serde_if_integer128 {
|
||||
($($tt:tt)*) => {};
|
||||
}
|
@ -222,6 +222,9 @@ mod lib {
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
|
||||
#[macro_use]
|
||||
mod integer128;
|
||||
|
||||
pub mod de;
|
||||
pub mod ser;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user