mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-02 23:35:26 +00:00
Merge pull request #2347 from dtolnay/docsrs
Replace docs.serde.rs links
This commit is contained in:
commit
df6310e5f5
@ -19,7 +19,7 @@ You may be looking for:
|
|||||||
- [Data formats supported by Serde](https://serde.rs/#data-formats)
|
- [Data formats supported by Serde](https://serde.rs/#data-formats)
|
||||||
- [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html)
|
- [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html)
|
||||||
- [Examples](https://serde.rs/examples.html)
|
- [Examples](https://serde.rs/examples.html)
|
||||||
- [API documentation](https://docs.serde.rs/serde/)
|
- [API documentation](https://docs.rs/serde)
|
||||||
- [Release notes](https://github.com/serde-rs/serde/releases)
|
- [Release notes](https://github.com/serde-rs/serde/releases)
|
||||||
|
|
||||||
## Serde in action
|
## Serde in action
|
||||||
|
@ -10,7 +10,7 @@ You may be looking for:
|
|||||||
- [Data formats supported by Serde](https://serde.rs/#data-formats)
|
- [Data formats supported by Serde](https://serde.rs/#data-formats)
|
||||||
- [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html)
|
- [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html)
|
||||||
- [Examples](https://serde.rs/examples.html)
|
- [Examples](https://serde.rs/examples.html)
|
||||||
- [API documentation](https://docs.serde.rs/serde/)
|
- [API documentation](https://docs.rs/serde)
|
||||||
- [Release notes](https://github.com/serde-rs/serde/releases)
|
- [Release notes](https://github.com/serde-rs/serde/releases)
|
||||||
|
|
||||||
## Serde in action
|
## Serde in action
|
||||||
|
@ -5,7 +5,7 @@ authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay
|
|||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
categories = ["encoding", "no-std"]
|
categories = ["encoding", "no-std"]
|
||||||
description = "A generic serialization/deserialization framework"
|
description = "A generic serialization/deserialization framework"
|
||||||
documentation = "https://docs.serde.rs/serde/"
|
documentation = "https://docs.rs/serde"
|
||||||
homepage = "https://serde.rs"
|
homepage = "https://serde.rs"
|
||||||
include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
|
include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
|
||||||
keywords = ["serde", "serialization", "no_std"]
|
keywords = ["serde", "serialization", "no_std"]
|
||||||
|
@ -501,8 +501,8 @@ impl<'a> Display for Expected + 'a {
|
|||||||
/// by Serde.
|
/// by Serde.
|
||||||
///
|
///
|
||||||
/// Serde provides `Deserialize` implementations for many Rust primitive and
|
/// Serde provides `Deserialize` implementations for many Rust primitive and
|
||||||
/// standard library types. The complete list is [here][de]. All of these can
|
/// standard library types. The complete list is [here][crate::de]. All of these
|
||||||
/// be deserialized using Serde out of the box.
|
/// can be deserialized using Serde out of the box.
|
||||||
///
|
///
|
||||||
/// Additionally, Serde provides a procedural macro called `serde_derive` to
|
/// Additionally, Serde provides a procedural macro called `serde_derive` to
|
||||||
/// automatically generate `Deserialize` implementations for structs and enums
|
/// automatically generate `Deserialize` implementations for structs and enums
|
||||||
@ -518,7 +518,6 @@ impl<'a> Display for Expected + 'a {
|
|||||||
/// `LinkedHashMap<K, V>` type that is deserializable by Serde because the crate
|
/// `LinkedHashMap<K, V>` type that is deserializable by Serde because the crate
|
||||||
/// provides an implementation of `Deserialize` for it.
|
/// provides an implementation of `Deserialize` for it.
|
||||||
///
|
///
|
||||||
/// [de]: https://docs.serde.rs/serde/de/index.html
|
|
||||||
/// [derive]: https://serde.rs/derive.html
|
/// [derive]: https://serde.rs/derive.html
|
||||||
/// [impl-deserialize]: https://serde.rs/impl-deserialize.html
|
/// [impl-deserialize]: https://serde.rs/impl-deserialize.html
|
||||||
///
|
///
|
||||||
|
@ -194,8 +194,8 @@ declare_error_trait!(Error: Sized + Debug + Display);
|
|||||||
/// by Serde.
|
/// by Serde.
|
||||||
///
|
///
|
||||||
/// Serde provides `Serialize` implementations for many Rust primitive and
|
/// Serde provides `Serialize` implementations for many Rust primitive and
|
||||||
/// standard library types. The complete list is [here][ser]. All of these can
|
/// standard library types. The complete list is [here][crate::ser]. All of
|
||||||
/// be serialized using Serde out of the box.
|
/// these can be serialized using Serde out of the box.
|
||||||
///
|
///
|
||||||
/// Additionally, Serde provides a procedural macro called [`serde_derive`] to
|
/// Additionally, Serde provides a procedural macro called [`serde_derive`] to
|
||||||
/// automatically generate `Serialize` implementations for structs and enums in
|
/// automatically generate `Serialize` implementations for structs and enums in
|
||||||
@ -215,7 +215,6 @@ declare_error_trait!(Error: Sized + Debug + Display);
|
|||||||
/// [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
|
/// [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
|
||||||
/// [`serde_derive`]: https://crates.io/crates/serde_derive
|
/// [`serde_derive`]: https://crates.io/crates/serde_derive
|
||||||
/// [derive section of the manual]: https://serde.rs/derive.html
|
/// [derive section of the manual]: https://serde.rs/derive.html
|
||||||
/// [ser]: https://docs.serde.rs/serde/ser/index.html
|
|
||||||
pub trait Serialize {
|
pub trait Serialize {
|
||||||
/// Serialize this value into the given Serde serializer.
|
/// Serialize this value into the given Serde serializer.
|
||||||
///
|
///
|
||||||
|
@ -5,7 +5,7 @@ authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay
|
|||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
categories = ["development-tools::testing"]
|
categories = ["development-tools::testing"]
|
||||||
description = "Token De/Serializer for testing De/Serialize implementations"
|
description = "Token De/Serializer for testing De/Serialize implementations"
|
||||||
documentation = "https://docs.serde.rs/serde_test/"
|
documentation = "https://docs.rs/serde_test"
|
||||||
homepage = "https://serde.rs"
|
homepage = "https://serde.rs"
|
||||||
include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
|
include = ["build.rs", "src/**/*.rs", "crates-io.md", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
|
||||||
keywords = ["serde", "serialization", "testing", "dev-dependencies"]
|
keywords = ["serde", "serialization", "testing", "dev-dependencies"]
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
//! This crate provides a convenient concise way to write unit tests for
|
//! This crate provides a convenient concise way to write unit tests for
|
||||||
//! implementations of [`Serialize`] and [`Deserialize`].
|
//! implementations of [`Serialize`] and [`Deserialize`].
|
||||||
//!
|
//!
|
||||||
//! [`Serialize`]: https://docs.serde.rs/serde/ser/trait.Serialize.html
|
//! [`Serialize`]: serde::ser::Serialize
|
||||||
//! [`Deserialize`]: https://docs.serde.rs/serde/de/trait.Deserialize.html
|
//! [`Deserialize`]: serde::de::Deserialize
|
||||||
//!
|
//!
|
||||||
//! The `Serialize` impl for a value can be characterized by the sequence of
|
//! The `Serialize` impl for a value can be characterized by the sequence of
|
||||||
//! [`Serializer`] calls that are made in the course of serializing the value,
|
//! [`Serializer`] calls that are made in the course of serializing the value,
|
||||||
@ -14,11 +14,7 @@
|
|||||||
//! test both directions. There are also functions to test expected failure
|
//! test both directions. There are also functions to test expected failure
|
||||||
//! conditions.
|
//! conditions.
|
||||||
//!
|
//!
|
||||||
//! [`Serializer`]: https://docs.serde.rs/serde/ser/trait.Serializer.html
|
//! [`Serializer`]: serde::ser::Serializer
|
||||||
//! [`Token`]: https://docs.serde.rs/serde_test/enum.Token.html
|
|
||||||
//! [`assert_ser_tokens`]: https://docs.serde.rs/serde_test/fn.assert_ser_tokens.html
|
|
||||||
//! [`assert_de_tokens`]: https://docs.serde.rs/serde_test/fn.assert_de_tokens.html
|
|
||||||
//! [`assert_tokens`]: https://docs.serde.rs/serde_test/fn.assert_tokens.html
|
|
||||||
//!
|
//!
|
||||||
//! Here is an example from the [`linked-hash-map`] crate.
|
//! Here is an example from the [`linked-hash-map`] crate.
|
||||||
//!
|
//!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user