diff --git a/serde/Cargo.toml b/serde/Cargo.toml index a2efb2631..8acc07128 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -1,21 +1,21 @@ [package] name = "serde" -version = "1.0.140" # remember to update html_root_url and serde_derive dependency +version = "1.0.142" # remember to update html_root_url and serde_derive dependency authors = ["Erick Tryzelaar ", "David Tolnay "] -rust-version = "1.13" -license = "MIT OR Apache-2.0" +build = "build.rs" +categories = ["encoding", "no-std"] description = "A generic serialization/deserialization framework" -homepage = "https://serde.rs" -repository = "https://github.com/serde-rs/serde" documentation = "https://docs.serde.rs/serde/" +homepage = "https://serde.rs" +include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] keywords = ["serde", "serialization", "no_std"] -categories = ["encoding"] +license = "MIT OR Apache-2.0" readme = "crates-io.md" -include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] -build = "build.rs" +repository = "https://github.com/serde-rs/serde" +rust-version = "1.13" [dependencies] -serde_derive = { version = "=1.0.140", optional = true, path = "../serde_derive" } +serde_derive = { version = "=1.0.142", optional = true, path = "../serde_derive" } [dev-dependencies] serde_derive = { version = "1.0", path = "../serde_derive" } diff --git a/serde/src/de/mod.rs b/serde/src/de/mod.rs index 6100815f7..e8a47cfc1 100644 --- a/serde/src/de/mod.rs +++ b/serde/src/de/mod.rs @@ -30,7 +30,7 @@ //! # The Deserializer trait //! //! [`Deserializer`] implementations are provided by third-party crates, for -//! example [`serde_json`], [`serde_yaml`] and [`bincode`]. +//! example [`serde_json`], [`serde_yaml`] and [`postcard`]. //! //! A partial list of well-maintained formats is given on the [Serde //! website][data formats]. @@ -104,7 +104,7 @@ //! [`Deserialize`]: ../trait.Deserialize.html //! [`Deserializer`]: ../trait.Deserializer.html //! [`LinkedHashMap`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html -//! [`bincode`]: https://github.com/bincode-org/bincode +//! [`postcard`]: https://github.com/jamesmunns/postcard //! [`linked-hash-map`]: https://crates.io/crates/linked-hash-map //! [`serde_derive`]: https://crates.io/crates/serde_derive //! [`serde_json`]: https://github.com/serde-rs/json @@ -874,7 +874,7 @@ where /// `Deserializer::deserialize_any`. /// /// 2. The various `deserialize_*` methods. Non-self-describing formats like -/// Bincode need to be told what is in the input in order to deserialize it. +/// Postcard need to be told what is in the input in order to deserialize it. /// The `deserialize_*` methods are hints to the deserializer for how to /// interpret the next piece of input. Non-self-describing formats are not /// able to deserialize something like `serde_json::Value` which relies on @@ -884,7 +884,7 @@ where /// `Deserializer::deserialize_any` unless you need to be told by the /// Deserializer what type is in the input. Know that relying on /// `Deserializer::deserialize_any` means your data type will be able to -/// deserialize from self-describing formats only, ruling out Bincode and many +/// deserialize from self-describing formats only, ruling out Postcard and many /// others. /// /// [Serde data model]: https://serde.rs/data-model.html @@ -915,7 +915,7 @@ pub trait Deserializer<'de>: Sized { /// `Deserializer::deserialize_any` unless you need to be told by the /// Deserializer what type is in the input. Know that relying on /// `Deserializer::deserialize_any` means your data type will be able to - /// deserialize from self-describing formats only, ruling out Bincode and + /// deserialize from self-describing formats only, ruling out Postcard and /// many others. fn deserialize_any(self, visitor: V) -> Result where @@ -1156,7 +1156,7 @@ pub trait Deserializer<'de>: Sized { /// Some types have a human-readable form that may be somewhat expensive to /// construct, as well as a binary form that is compact and efficient. /// Generally text-based formats like JSON and YAML will prefer to use the - /// human-readable one and binary formats like Bincode will prefer the + /// human-readable one and binary formats like Postcard will prefer the /// compact one. /// /// ```edition2018 @@ -1560,7 +1560,7 @@ pub trait Visitor<'de>: Sized { /// `Deserializer`. /// /// This enables zero-copy deserialization of bytes in some formats. For - /// example Bincode data containing bytes can be deserialized with zero + /// example Postcard data containing bytes can be deserialized with zero /// copying into a `&'a [u8]` as long as the input data outlives `'a`. /// /// The default implementation forwards to `visit_bytes`. diff --git a/serde/src/lib.rs b/serde/src/lib.rs index f1a17513c..b0c270342 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -31,8 +31,7 @@ //! for Serde by the community. //! //! - [JSON], the ubiquitous JavaScript Object Notation used by many HTTP APIs. -//! - [Bincode], a compact binary format -//! used for IPC within the Servo rendering engine. +//! - [Postcard], a no\_std and embedded-systems friendly compact binary format. //! - [CBOR], a Concise Binary Object Representation designed for small message //! size without the need for version negotiation. //! - [YAML], a self-proclaimed human-friendly configuration language that ain't @@ -45,7 +44,6 @@ //! - [Avro], a binary format used within Apache Hadoop, with support for schema //! definition. //! - [JSON5], a superset of JSON including some productions from ES5. -//! - [Postcard], a no\_std and embedded-systems friendly compact binary format. //! - [URL] query strings, in the x-www-form-urlencoded format. //! - [Envy], a way to deserialize environment variables into Rust structs. //! *(deserialization only)* @@ -59,7 +57,7 @@ //! and from DynamoDB. //! //! [JSON]: https://github.com/serde-rs/json -//! [Bincode]: https://github.com/bincode-org/bincode +//! [Postcard]: https://github.com/jamesmunns/postcard //! [CBOR]: https://github.com/enarx/ciborium //! [YAML]: https://github.com/dtolnay/serde-yaml //! [MessagePack]: https://github.com/3Hren/msgpack-rust @@ -69,7 +67,6 @@ //! [BSON]: https://github.com/mongodb/bson-rust //! [Avro]: https://github.com/flavray/avro-rs //! [JSON5]: https://github.com/callum-oakley/json5-rs -//! [Postcard]: https://github.com/jamesmunns/postcard //! [URL]: https://docs.rs/serde_qs //! [Envy]: https://github.com/softprops/envy //! [Envy Store]: https://github.com/softprops/envy-store @@ -84,7 +81,7 @@ //////////////////////////////////////////////////////////////////////////////// // Serde types in rustdoc of other crates get linked to here. -#![doc(html_root_url = "https://docs.rs/serde/1.0.140")] +#![doc(html_root_url = "https://docs.rs/serde/1.0.142")] // 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 diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index eb226ae96..9a21363d6 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -30,7 +30,7 @@ //! # The Serializer trait //! //! [`Serializer`] implementations are provided by third-party crates, for -//! example [`serde_json`], [`serde_yaml`] and [`bincode`]. +//! example [`serde_json`], [`serde_yaml`] and [`postcard`]. //! //! A partial list of well-maintained formats is given on the [Serde //! website][data formats]. @@ -99,7 +99,7 @@ //! [`LinkedHashMap`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html //! [`Serialize`]: ../trait.Serialize.html //! [`Serializer`]: ../trait.Serializer.html -//! [`bincode`]: https://github.com/bincode-org/bincode +//! [`postcard`]: https://github.com/jamesmunns/postcard //! [`linked-hash-map`]: https://crates.io/crates/linked-hash-map //! [`serde_derive`]: https://crates.io/crates/serde_derive //! [`serde_json`]: https://github.com/serde-rs/json @@ -314,7 +314,7 @@ pub trait Serialize { /// - For example the `E::S` in `enum E { S { r: u8, g: u8, b: u8 } }`. /// /// Many Serde serializers produce text or binary data as output, for example -/// JSON or Bincode. This is not a requirement of the `Serializer` trait, and +/// JSON or Postcard. This is not a requirement of the `Serializer` trait, and /// there are serializers that do not produce text or binary output. One example /// is the `serde_json::value::Serializer` (distinct from the main `serde_json` /// serializer) that produces a `serde_json::Value` data structure in memory as @@ -1423,7 +1423,7 @@ pub trait Serializer: Sized { /// Some types have a human-readable form that may be somewhat expensive to /// construct, as well as a binary form that is compact and efficient. /// Generally text-based formats like JSON and YAML will prefer to use the - /// human-readable one and binary formats like Bincode will prefer the + /// human-readable one and binary formats like Postcard will prefer the /// compact one. /// /// ```edition2018 diff --git a/serde_derive/Cargo.toml b/serde_derive/Cargo.toml index 333c7f27d..2ffcad5fc 100644 --- a/serde_derive/Cargo.toml +++ b/serde_derive/Cargo.toml @@ -1,16 +1,17 @@ [package] name = "serde_derive" -version = "1.0.140" # remember to update html_root_url +version = "1.0.142" # remember to update html_root_url authors = ["Erick Tryzelaar ", "David Tolnay "] -rust-version = "1.31" -license = "MIT OR Apache-2.0" +categories = ["no-std"] description = "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]" -homepage = "https://serde.rs" -repository = "https://github.com/serde-rs/serde" documentation = "https://serde.rs/derive.html" -keywords = ["serde", "serialization", "no_std"] -readme = "crates-io.md" +homepage = "https://serde.rs" include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] +keywords = ["serde", "serialization", "no_std", "derive"] +license = "MIT OR Apache-2.0" +readme = "crates-io.md" +repository = "https://github.com/serde-rs/serde" +rust-version = "1.31" [features] default = [] diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index d82e92560..62b886c3e 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -13,7 +13,7 @@ //! //! [https://serde.rs/derive.html]: https://serde.rs/derive.html -#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.140")] +#![doc(html_root_url = "https://docs.rs/serde_derive/1.0.142")] #![allow(unknown_lints, bare_trait_objects)] // Ignored clippy lints #![allow( diff --git a/serde_derive_internals/Cargo.toml b/serde_derive_internals/Cargo.toml index b5f85fde2..f84a3f52d 100644 --- a/serde_derive_internals/Cargo.toml +++ b/serde_derive_internals/Cargo.toml @@ -2,14 +2,14 @@ name = "serde_derive_internals" version = "0.26.0" # remember to update html_root_url authors = ["Erick Tryzelaar ", "David Tolnay "] -rust-version = "1.31" -license = "MIT OR Apache-2.0" description = "AST representation used by Serde derive macros. Unstable." -homepage = "https://serde.rs" -repository = "https://github.com/serde-rs/serde" documentation = "https://docs.rs/serde_derive_internals" -keywords = ["serde", "serialization"] +homepage = "https://serde.rs" include = ["lib.rs", "src/**/*.rs", "LICENSE-APACHE", "LICENSE-MIT"] +keywords = ["serde", "serialization"] +license = "MIT OR Apache-2.0" +repository = "https://github.com/serde-rs/serde" +rust-version = "1.31" [lib] path = "lib.rs" diff --git a/serde_test/Cargo.toml b/serde_test/Cargo.toml index b2253b08e..67f9fc0ad 100644 --- a/serde_test/Cargo.toml +++ b/serde_test/Cargo.toml @@ -1,17 +1,18 @@ [package] name = "serde_test" -version = "1.0.140" # remember to update html_root_url +version = "1.0.142" # remember to update html_root_url authors = ["Erick Tryzelaar ", "David Tolnay "] -rust-version = "1.13" -license = "MIT OR Apache-2.0" +build = "build.rs" +categories = ["development-tools::testing"] description = "Token De/Serializer for testing De/Serialize implementations" -homepage = "https://serde.rs" -repository = "https://github.com/serde-rs/serde" documentation = "https://docs.serde.rs/serde_test/" -keywords = ["serde", "serialization"] -readme = "crates-io.md" +homepage = "https://serde.rs" include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] -build = "build.rs" +keywords = ["serde", "serialization", "testing"] +license = "MIT OR Apache-2.0" +readme = "crates-io.md" +repository = "https://github.com/serde-rs/serde" +rust-version = "1.13" [dependencies] serde = { version = "1.0.60", path = "../serde" } diff --git a/serde_test/src/lib.rs b/serde_test/src/lib.rs index 278f97cf2..6ac31648d 100644 --- a/serde_test/src/lib.rs +++ b/serde_test/src/lib.rs @@ -144,7 +144,7 @@ //! # } //! ``` -#![doc(html_root_url = "https://docs.rs/serde_test/1.0.140")] +#![doc(html_root_url = "https://docs.rs/serde_test/1.0.142")] #![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] // Ignored clippy lints #![cfg_attr(feature = "cargo-clippy", allow(float_cmp, needless_doctest_main))] diff --git a/test_suite/Cargo.toml b/test_suite/Cargo.toml index adf0e0fbb..3e2aaefb0 100644 --- a/test_suite/Cargo.toml +++ b/test_suite/Cargo.toml @@ -2,9 +2,9 @@ name = "serde_test_suite" version = "0.0.0" authors = ["Erick Tryzelaar ", "David Tolnay "] +build = "build.rs" edition = "2018" publish = false -build = "build.rs" [features] expandtest = [] diff --git a/test_suite/no_std/Cargo.toml b/test_suite/no_std/Cargo.toml index 8746960c2..1ba3c9a2b 100644 --- a/test_suite/no_std/Cargo.toml +++ b/test_suite/no_std/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "serde_derive_tests_no_std" version = "0.0.0" +authors = ["David Tolnay "] edition = "2018" publish = false