mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 02:58:00 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dbaf2893e3 | |||
| 34a7108b73 | |||
| db2bafd3f3 |
+1
-6
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "serde"
|
||||
version = "1.0.63" # remember to update html_root_url
|
||||
version = "1.0.64" # remember to update html_root_url
|
||||
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"]
|
||||
license = "MIT/Apache-2.0"
|
||||
description = "A generic serialization/deserialization framework"
|
||||
@@ -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 #################################################################
|
||||
|
||||
|
||||
@@ -53,6 +53,11 @@ fn rustc_minor_version() -> Option<u32> {
|
||||
Err(_) => return None,
|
||||
};
|
||||
|
||||
// Temporary workaround to support the old 1.26-dev compiler on docs.rs.
|
||||
if version.contains("0eb87c9bf") {
|
||||
return Some(25);
|
||||
}
|
||||
|
||||
let mut pieces = version.split('.');
|
||||
if pieces.next() != Some("rustc 1") {
|
||||
return None;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Serde types in rustdoc of other crates get linked to here.
|
||||
#![doc(html_root_url = "https://docs.rs/serde/1.0.63")]
|
||||
#![doc(html_root_url = "https://docs.rs/serde/1.0.64")]
|
||||
// Support using Serde without the standard library!
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
// Unstable functionality only if the user asks for it. For tracking and
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "serde_derive"
|
||||
version = "1.0.63" # remember to update html_root_url
|
||||
version = "1.0.64" # remember to update html_root_url
|
||||
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"]
|
||||
license = "MIT/Apache-2.0"
|
||||
description = "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//!
|
||||
//! [https://serde.rs/derive.html]: https://serde.rs/derive.html
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.63")]
|
||||
#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.64")]
|
||||
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
|
||||
// Whitelisted clippy lints
|
||||
#![cfg_attr(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "serde_test"
|
||||
version = "1.0.63" # remember to update html_root_url
|
||||
version = "1.0.64" # remember to update html_root_url
|
||||
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"]
|
||||
license = "MIT/Apache-2.0"
|
||||
description = "Token De/Serializer for testing De/Serialize implementations"
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
//! # }
|
||||
//! ```
|
||||
|
||||
#![doc(html_root_url = "https://docs.rs/serde_test/1.0.63")]
|
||||
#![doc(html_root_url = "https://docs.rs/serde_test/1.0.64")]
|
||||
#![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
|
||||
// Whitelisted clippy lints
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
||||
|
||||
Reference in New Issue
Block a user