diff --git a/serde/Cargo.toml b/serde/Cargo.toml index 7e807cbb..602f9a95 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -23,11 +23,6 @@ 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 ################################################################# diff --git a/serde/src/integer128.rs b/serde/src/integer128.rs index ce8834d4..71db2465 100644 --- a/serde/src/integer128.rs +++ b/serde/src/integer128.rs @@ -70,7 +70,7 @@ /// ($($tt:tt)*) => {}; /// } /// ``` -#[cfg(all(integer128, not(serde_docs_rs)))] +#[cfg(integer128)] #[macro_export] macro_rules! serde_if_integer128 { ($($tt:tt)*) => { @@ -78,7 +78,7 @@ macro_rules! serde_if_integer128 { }; } -#[cfg(any(not(integer128), serde_docs_rs))] +#[cfg(not(integer128))] #[macro_export] #[doc(hidden)] macro_rules! serde_if_integer128 {