Skip to content

Commit 765fb8e

Browse files
bors[bot]jonasbb
andauthored
Merge #249
249: Bump serde_with to 1.6.1 r=jonasbb a=jonasbb Co-authored-by: Jonas Bushart <[email protected]>
2 parents d842b38 + 5f51043 commit 765fb8e

File tree

5 files changed

+34
-27
lines changed

5 files changed

+34
-27
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [1.6.1]
11+
1012
### Added
1113

1214
* Add new types similar to `DurationSeconds` and `TimestampSeconds` but for base units of milliseconds, microseconds, and nanoseconds.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
[package]
88
authors = ["Jonas Bushart"]
99
name = "serde_with"
10-
version = "1.6.0"
10+
version = "1.6.1"
1111

1212
categories = ["encoding"]
1313
description = "Custom de/serialization functions for Rust's serde"

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,20 @@ Some common use cases are:
1717
* Deserialize a comma separated list like `#hash,#tags,#are,#great` into a `Vec<String>`.
1818
Check the documentation for [`serde_with::rust::StringWithSeparator::<CommaSeparator>`][StringWithSeparator].
1919

20+
### Getting Help
21+
2022
**Check out the [user guide][user guide] to find out more tips and tricks about this crate.**
2123

24+
For further help using this crate you can [open a new discussion](https://github.com/jonasbb/serde_with/discussions/new) or ask on [users.rust-lang.org](https://users.rust-lang.org/).
25+
For bugs please open a [new issue](https://github.com/jonasbb/serde_with/issues/new) on Github.
26+
2227
## Use `serde_with` in your Project
2328

2429
Add this to your `Cargo.toml`:
2530

2631
```toml
2732
[dependencies.serde_with]
28-
version = "1.6.0"
33+
version = "1.6.1"
2934
features = [ "..." ]
3035
```
3136

@@ -119,13 +124,13 @@ Foo {
119124
}
120125
```
121126

122-
[`DisplayFromStr`]: https://docs.rs/serde_with/1.6.0/serde_with/struct.DisplayFromStr.html
123-
[`with_prefix!`]: https://docs.rs/serde_with/1.6.0/serde_with/macro.with_prefix.html
124-
[display_fromstr]: https://docs.rs/serde_with/1.6.0/serde_with/rust/display_fromstr/index.html
125-
[feature flags]: https://docs.rs/serde_with/1.6.0/serde_with/guide/feature_flags/index.html
126-
[skip_serializing_none]: https://docs.rs/serde_with/1.6.0/serde_with/attr.skip_serializing_none.html
127-
[StringWithSeparator]: https://docs.rs/serde_with/1.6.0/serde_with/rust/struct.StringWithSeparator.html
128-
[user guide]: https://docs.rs/serde_with/1.6.0/serde_with/guide/index.html
127+
[`DisplayFromStr`]: https://docs.rs/serde_with/1.6.1/serde_with/struct.DisplayFromStr.html
128+
[`with_prefix!`]: https://docs.rs/serde_with/1.6.1/serde_with/macro.with_prefix.html
129+
[display_fromstr]: https://docs.rs/serde_with/1.6.1/serde_with/rust/display_fromstr/index.html
130+
[feature flags]: https://docs.rs/serde_with/1.6.1/serde_with/guide/feature_flags/index.html
131+
[skip_serializing_none]: https://docs.rs/serde_with/1.6.1/serde_with/attr.skip_serializing_none.html
132+
[StringWithSeparator]: https://docs.rs/serde_with/1.6.1/serde_with/rust/struct.StringWithSeparator.html
133+
[user guide]: https://docs.rs/serde_with/1.6.1/serde_with/guide/index.html
129134
[with-annotation]: https://serde.rs/field-attrs.html#with
130135

131136
## License

serde_with_macros/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool {
426426
/// }
427427
/// ```
428428
///
429-
/// [`serde_as`]: https://docs.rs/serde_with/1.6.0/serde_with/guide/index.html
430-
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/1.6.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
429+
/// [`serde_as`]: https://docs.rs/serde_with/1.6.1/serde_with/guide/index.html
430+
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/1.6.1/serde_with/guide/serde_as/index.html#re-exporting-serde_as
431431
#[proc_macro_attribute]
432432
pub fn serde_as(args: TokenStream, input: TokenStream) -> TokenStream {
433433
#[derive(FromMeta, Debug)]
@@ -762,7 +762,7 @@ fn replace_infer_type_with_type(to_replace: Type, replacement: &Type) -> Type {
762762
/// [`Display`]: std::fmt::Display
763763
/// [`FromStr`]: std::str::FromStr
764764
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
765-
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
765+
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.1/serde_with/guide/serde_as/index.html#re-exporting-serde_as
766766
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
767767
#[proc_macro_derive(DeserializeFromStr, attributes(serde_with))]
768768
pub fn derive_deserialize_fromstr(item: TokenStream) -> TokenStream {
@@ -875,7 +875,7 @@ fn deserialize_fromstr(
875875
/// [`Display`]: std::fmt::Display
876876
/// [`FromStr`]: std::str::FromStr
877877
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
878-
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
878+
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.1/serde_with/guide/serde_as/index.html#re-exporting-serde_as
879879
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
880880
#[proc_macro_derive(SerializeDisplay, attributes(serde_with))]
881881
pub fn derive_serialize_display(item: TokenStream) -> TokenStream {

src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#![doc(test(attr(warn(rust_2018_idioms))))]
2424
// Not needed for 2018 edition and conflicts with `rust_2018_idioms`
2525
#![doc(test(no_crate_inject))]
26-
#![doc(html_root_url = "https://docs.rs/serde_with/1.6.0")]
26+
#![doc(html_root_url = "https://docs.rs/serde_with/1.6.1")]
2727
// Necessary to silence the warning about clippy::unknown_clippy_lints on nightly
2828
#![allow(renamed_and_removed_lints)]
2929
// Rust 1.45: introduction of `strip_prefix` used by clippy::manual_strip
@@ -59,7 +59,7 @@
5959
//!
6060
//! ```toml
6161
//! [dependencies.serde_with]
62-
//! version = "1.6.0"
62+
//! version = "1.6.1"
6363
//! features = [ "..." ]
6464
//! ```
6565
//!
@@ -198,13 +198,13 @@
198198
//! # }
199199
//! ```
200200
//!
201-
//! [`DisplayFromStr`]: https://docs.rs/serde_with/1.6.0/serde_with/struct.DisplayFromStr.html
202-
//! [`with_prefix!`]: https://docs.rs/serde_with/1.6.0/serde_with/macro.with_prefix.html
203-
//! [display_fromstr]: https://docs.rs/serde_with/1.6.0/serde_with/rust/display_fromstr/index.html
204-
//! [feature flags]: https://docs.rs/serde_with/1.6.0/serde_with/guide/feature_flags/index.html
205-
//! [skip_serializing_none]: https://docs.rs/serde_with/1.6.0/serde_with/attr.skip_serializing_none.html
206-
//! [StringWithSeparator]: https://docs.rs/serde_with/1.6.0/serde_with/rust/struct.StringWithSeparator.html
207-
//! [user guide]: https://docs.rs/serde_with/1.6.0/serde_with/guide/index.html
201+
//! [`DisplayFromStr`]: https://docs.rs/serde_with/1.6.1/serde_with/struct.DisplayFromStr.html
202+
//! [`with_prefix!`]: https://docs.rs/serde_with/1.6.1/serde_with/macro.with_prefix.html
203+
//! [display_fromstr]: https://docs.rs/serde_with/1.6.1/serde_with/rust/display_fromstr/index.html
204+
//! [feature flags]: https://docs.rs/serde_with/1.6.1/serde_with/guide/feature_flags/index.html
205+
//! [skip_serializing_none]: https://docs.rs/serde_with/1.6.1/serde_with/attr.skip_serializing_none.html
206+
//! [StringWithSeparator]: https://docs.rs/serde_with/1.6.1/serde_with/rust/struct.StringWithSeparator.html
207+
//! [user guide]: https://docs.rs/serde_with/1.6.1/serde_with/guide/index.html
208208
//! [with-annotation]: https://serde.rs/field-attrs.html#with
209209
210210
#[doc(hidden)]
@@ -340,7 +340,7 @@ impl Separator for CommaSeparator {
340340
/// # }
341341
/// ```
342342
///
343-
/// [serde_as]: https://docs.rs/serde_with/1.6.0/serde_with/attr.serde_as.html
343+
/// [serde_as]: https://docs.rs/serde_with/1.6.1/serde_with/attr.serde_as.html
344344
#[derive(Copy, Clone, Debug, Default)]
345345
pub struct As<T: ?Sized>(PhantomData<T>);
346346

@@ -807,7 +807,7 @@ pub struct BytesOrString;
807807
/// ```
808808
///
809809
/// [`chrono::Duration`]: chrono_crate::Duration
810-
/// [feature flag]: https://docs.rs/serde_with/1.6.0/serde_with/guide/feature_flags/index.html
810+
/// [feature flag]: https://docs.rs/serde_with/1.6.1/serde_with/guide/feature_flags/index.html
811811
#[derive(Copy, Clone, Debug, Default)]
812812
pub struct DurationSeconds<
813813
FORMAT: formats::Format = u64,
@@ -933,7 +933,7 @@ pub struct DurationSeconds<
933933
/// ```
934934
///
935935
/// [`chrono::Duration`]: chrono_crate::Duration
936-
/// [feature flag]: https://docs.rs/serde_with/1.6.0/serde_with/guide/feature_flags/index.html
936+
/// [feature flag]: https://docs.rs/serde_with/1.6.1/serde_with/guide/feature_flags/index.html
937937
#[derive(Copy, Clone, Debug, Default)]
938938
pub struct DurationSecondsWithFrac<
939939
FORMAT: formats::Format = f64,
@@ -1130,7 +1130,7 @@ pub struct DurationNanoSecondsWithFrac<
11301130
///
11311131
/// [`SystemTime`]: std::time::SystemTime
11321132
/// [DateTime]: chrono_crate::DateTime
1133-
/// [feature flag]: https://docs.rs/serde_with/1.6.0/serde_with/guide/feature_flags/index.html
1133+
/// [feature flag]: https://docs.rs/serde_with/1.6.1/serde_with/guide/feature_flags/index.html
11341134
#[derive(Copy, Clone, Debug, Default)]
11351135
pub struct TimestampSeconds<
11361136
FORMAT: formats::Format = i64,
@@ -1259,7 +1259,7 @@ pub struct TimestampSeconds<
12591259
///
12601260
/// [`SystemTime`]: std::time::SystemTime
12611261
/// [DateTime]: chrono_crate::DateTime
1262-
/// [feature flag]: https://docs.rs/serde_with/1.6.0/serde_with/guide/feature_flags/index.html
1262+
/// [feature flag]: https://docs.rs/serde_with/1.6.1/serde_with/guide/feature_flags/index.html
12631263
#[derive(Copy, Clone, Debug, Default)]
12641264
pub struct TimestampSecondsWithFrac<
12651265
FORMAT: formats::Format = f64,

0 commit comments

Comments
 (0)