|
22 | 22 | #![doc(test(attr(warn(rust_2018_idioms))))]
|
23 | 23 | // Not needed for 2018 edition and conflicts with `rust_2018_idioms`
|
24 | 24 | #![doc(test(no_crate_inject))]
|
25 |
| -#![doc(html_root_url = "https://docs.rs/serde_with/1.14.0")] |
| 25 | +#![doc(html_root_url = "https://docs.rs/serde_with/2.0.0-rc.0")] |
26 | 26 | #![cfg_attr(docsrs, feature(doc_cfg))]
|
27 | 27 | #![allow(
|
28 | 28 | // clippy is broken and shows wrong warnings
|
|
69 | 69 | //!
|
70 | 70 | //! ```toml
|
71 | 71 | //! [dependencies.serde_with]
|
72 |
| -//! version = "1.14.0" |
| 72 | +//! version = "2.0.0-rc.0" |
73 | 73 | //! features = [ "..." ]
|
74 | 74 | //! ```
|
75 | 75 | //!
|
|
248 | 248 | //! # }
|
249 | 249 | //! ```
|
250 | 250 | //!
|
251 |
| -//! [`DisplayFromStr`]: https://docs.rs/serde_with/1.14.0/serde_with/struct.DisplayFromStr.html |
252 |
| -//! [`with_prefix!`]: https://docs.rs/serde_with/1.14.0/serde_with/macro.with_prefix.html |
253 |
| -//! [feature flags]: https://docs.rs/serde_with/1.14.0/serde_with/guide/feature_flags/index.html |
254 |
| -//! [skip_serializing_none]: https://docs.rs/serde_with/1.14.0/serde_with/attr.skip_serializing_none.html |
255 |
| -//! [StringWithSeparator]: https://docs.rs/serde_with/1.14.0/serde_with/rust/struct.StringWithSeparator.html |
256 |
| -//! [user guide]: https://docs.rs/serde_with/1.14.0/serde_with/guide/index.html |
| 251 | +//! [`DisplayFromStr`]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/struct.DisplayFromStr.html |
| 252 | +//! [`with_prefix!`]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/macro.with_prefix.html |
| 253 | +//! [feature flags]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/feature_flags/index.html |
| 254 | +//! [skip_serializing_none]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/attr.skip_serializing_none.html |
| 255 | +//! [StringWithSeparator]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/rust/struct.StringWithSeparator.html |
| 256 | +//! [user guide]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/index.html |
257 | 257 | //! [with-annotation]: https://serde.rs/field-attrs.html#with
|
258 |
| -//! [as-annotation]: https://docs.rs/serde_with/1.14.0/serde_with/guide/serde_as/index.html |
| 258 | +//! [as-annotation]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/serde_as/index.html |
259 | 259 |
|
260 | 260 | #[cfg(feature = "alloc")]
|
261 | 261 | extern crate alloc;
|
@@ -396,7 +396,7 @@ pub use serde_with_macros::*;
|
396 | 396 | /// # }
|
397 | 397 | /// ```
|
398 | 398 | ///
|
399 |
| -/// [serde_as]: https://docs.rs/serde_with/1.14.0/serde_with/attr.serde_as.html |
| 399 | +/// [serde_as]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/attr.serde_as.html |
400 | 400 | pub struct As<T: ?Sized>(PhantomData<T>);
|
401 | 401 |
|
402 | 402 | impl<T: ?Sized> As<T> {
|
@@ -853,7 +853,7 @@ pub struct BytesOrString;
|
853 | 853 | /// ```
|
854 | 854 | ///
|
855 | 855 | /// [`chrono::Duration`]: ::chrono_0_4::Duration
|
856 |
| -/// [feature flag]: https://docs.rs/serde_with/1.14.0/serde_with/guide/feature_flags/index.html |
| 856 | +/// [feature flag]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/feature_flags/index.html |
857 | 857 | pub struct DurationSeconds<
|
858 | 858 | FORMAT: formats::Format = u64,
|
859 | 859 | STRICTNESS: formats::Strictness = formats::Strict,
|
@@ -981,7 +981,7 @@ pub struct DurationSeconds<
|
981 | 981 | /// ```
|
982 | 982 | ///
|
983 | 983 | /// [`chrono::Duration`]: ::chrono_0_4::Duration
|
984 |
| -/// [feature flag]: https://docs.rs/serde_with/1.14.0/serde_with/guide/feature_flags/index.html |
| 984 | +/// [feature flag]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/feature_flags/index.html |
985 | 985 | pub struct DurationSecondsWithFrac<
|
986 | 986 | FORMAT: formats::Format = f64,
|
987 | 987 | STRICTNESS: formats::Strictness = formats::Strict,
|
@@ -1177,7 +1177,7 @@ pub struct DurationNanoSecondsWithFrac<
|
1177 | 1177 | /// [`SystemTime`]: std::time::SystemTime
|
1178 | 1178 | /// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
|
1179 | 1179 | /// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
|
1180 |
| -/// [feature flag]: https://docs.rs/serde_with/1.14.0/serde_with/guide/feature_flags/index.html |
| 1180 | +/// [feature flag]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/feature_flags/index.html |
1181 | 1181 | pub struct TimestampSeconds<
|
1182 | 1182 | FORMAT: formats::Format = i64,
|
1183 | 1183 | STRICTNESS: formats::Strictness = formats::Strict,
|
@@ -1315,7 +1315,7 @@ pub struct TimestampSeconds<
|
1315 | 1315 | /// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
|
1316 | 1316 | /// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
|
1317 | 1317 | /// [NaiveDateTime]: ::chrono_0_4::NaiveDateTime
|
1318 |
| -/// [feature flag]: https://docs.rs/serde_with/1.14.0/serde_with/guide/feature_flags/index.html |
| 1318 | +/// [feature flag]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/feature_flags/index.html |
1319 | 1319 | pub struct TimestampSecondsWithFrac<
|
1320 | 1320 | FORMAT: formats::Format = f64,
|
1321 | 1321 | STRICTNESS: formats::Strictness = formats::Strict,
|
|
0 commit comments