Work around docs.rs using an old 1.26-dev compiler
This commit is contained in:
parent
a39199e9f7
commit
c81bab18ad
@ -23,6 +23,11 @@ serde_derive = { version = "1.0", optional = true, path = "../serde_derive" }
|
||||
[dev-dependencies]
|
||||
serde_derive = { version = "1.0", path = "../serde_derive" }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
# Temporary cfg to work around docs.rs using an old 1.26-dev compiler.
|
||||
rustc-args = ["--cfg", "serde_docs_rs"]
|
||||
rustdoc-args = ["--cfg", "serde_docs_rs"]
|
||||
|
||||
|
||||
### FEATURES #################################################################
|
||||
|
||||
|
@ -70,7 +70,7 @@
|
||||
/// ($($tt:tt)*) => {};
|
||||
/// }
|
||||
/// ```
|
||||
#[cfg(integer128)]
|
||||
#[cfg(all(integer128, not(serde_docs_rs)))]
|
||||
#[macro_export]
|
||||
macro_rules! serde_if_integer128 {
|
||||
($($tt:tt)*) => {
|
||||
@ -78,7 +78,7 @@ macro_rules! serde_if_integer128 {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(not(integer128))]
|
||||
#[cfg(any(not(integer128), serde_docs_rs))]
|
||||
#[macro_export]
|
||||
#[doc(hidden)]
|
||||
macro_rules! serde_if_integer128 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user