Skip to content

Commit

Permalink
Merge #266
Browse files Browse the repository at this point in the history
266: Bump Versions r=jonasbb a=jonasbb

Upgrade serde_with_macros to 1.4.0.
Upgrade serde_with to 1.6.3 to pull in the new serde_with_macros version.

bors r+

Co-authored-by: Jonas Bushart <jonas@bushart.org>
  • Loading branch information
bors[bot] and jonasbb committed Feb 15, 2021
2 parents 60c8b16 + 3495617 commit 9bc54e0
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 32 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.6.3]

### Changed

* Bump macro crate dependency (`serde_with_macros`) to 1.4.0 to pull in those improvements.

## [1.6.2]

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
[package]
authors = ["Jonas Bushart"]
name = "serde_with"
version = "1.6.2"
version = "1.6.3"

categories = ["encoding"]
description = "Custom de/serialization functions for Rust's serde"
Expand Down Expand Up @@ -38,7 +38,7 @@ doc-comment = {version = "0.3.3", optional = true}
hex = {version = "0.4.2", optional = true}
serde = {version = "1.0.75", features = ["derive"]}
serde_json = {version = "1.0.1", optional = true}
serde_with_macros = {path = "./serde_with_macros", version = "1.3.0", optional = true}
serde_with_macros = {path = "./serde_with_macros", version = "1.4.0", optional = true}

[dev-dependencies]
expect-test = "1.0.0"
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies.serde_with]
version = "1.6.2"
version = "1.6.3"
features = [ "..." ]
```

Expand Down Expand Up @@ -124,13 +124,13 @@ Foo {
}
```

[`DisplayFromStr`]: https://docs.rs/serde_with/1.6.2/serde_with/struct.DisplayFromStr.html
[`with_prefix!`]: https://docs.rs/serde_with/1.6.2/serde_with/macro.with_prefix.html
[display_fromstr]: https://docs.rs/serde_with/1.6.2/serde_with/rust/display_fromstr/index.html
[feature flags]: https://docs.rs/serde_with/1.6.2/serde_with/guide/feature_flags/index.html
[skip_serializing_none]: https://docs.rs/serde_with/1.6.2/serde_with/attr.skip_serializing_none.html
[StringWithSeparator]: https://docs.rs/serde_with/1.6.2/serde_with/rust/struct.StringWithSeparator.html
[user guide]: https://docs.rs/serde_with/1.6.2/serde_with/guide/index.html
[`DisplayFromStr`]: https://docs.rs/serde_with/1.6.3/serde_with/struct.DisplayFromStr.html
[`with_prefix!`]: https://docs.rs/serde_with/1.6.3/serde_with/macro.with_prefix.html
[display_fromstr]: https://docs.rs/serde_with/1.6.3/serde_with/rust/display_fromstr/index.html
[feature flags]: https://docs.rs/serde_with/1.6.3/serde_with/guide/feature_flags/index.html
[skip_serializing_none]: https://docs.rs/serde_with/1.6.3/serde_with/attr.skip_serializing_none.html
[StringWithSeparator]: https://docs.rs/serde_with/1.6.3/serde_with/rust/struct.StringWithSeparator.html
[user guide]: https://docs.rs/serde_with/1.6.3/serde_with/guide/index.html
[with-annotation]: https://serde.rs/field-attrs.html#with

## License
Expand Down
2 changes: 1 addition & 1 deletion serde_with_macros/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.4.0]

### Changed

Expand Down
2 changes: 1 addition & 1 deletion serde_with_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Jonas Bushart"]
name = "serde_with_macros"
version = "1.3.0"
version = "1.4.0"

categories = ["encoding"]
description = "proc-macro library for serde_with"
Expand Down
10 changes: 5 additions & 5 deletions serde_with_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#![doc(test(attr(warn(rust_2018_idioms))))]
// Not needed for 2018 edition and conflicts with `rust_2018_idioms`
#![doc(test(no_crate_inject))]
#![doc(html_root_url = "https://docs.rs/serde_with_macros/1.3.0")]
#![doc(html_root_url = "https://docs.rs/serde_with_macros/1.4.0")]
// Necessary to silence the warning about clippy::unknown_clippy_lints on nightly
#![allow(renamed_and_removed_lints)]
// Necessary for nightly clippy lints
Expand Down Expand Up @@ -434,8 +434,8 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool {
/// }
/// ```
///
/// [`serde_as`]: https://docs.rs/serde_with/1.6.2/serde_with/guide/index.html
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/1.6.2/serde_with/guide/serde_as/index.html#re-exporting-serde_as
/// [`serde_as`]: https://docs.rs/serde_with/1.6.3/serde_with/guide/index.html
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/1.6.3/serde_with/guide/serde_as/index.html#re-exporting-serde_as
#[proc_macro_attribute]
pub fn serde_as(args: TokenStream, input: TokenStream) -> TokenStream {
#[derive(FromMeta, Debug)]
Expand Down Expand Up @@ -730,7 +730,7 @@ fn replace_infer_type_with_type(to_replace: Type, replacement: &Type) -> Type {
/// [`Display`]: std::fmt::Display
/// [`FromStr`]: std::str::FromStr
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.2/serde_with/guide/serde_as/index.html#re-exporting-serde_as
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.3/serde_with/guide/serde_as/index.html#re-exporting-serde_as
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
#[proc_macro_derive(DeserializeFromStr, attributes(serde_with))]
pub fn derive_deserialize_fromstr(item: TokenStream) -> TokenStream {
Expand Down Expand Up @@ -840,7 +840,7 @@ fn deserialize_fromstr(input: DeriveInput, serde_with_crate_path: Path) -> Token
/// [`Display`]: std::fmt::Display
/// [`FromStr`]: std::str::FromStr
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.2/serde_with/guide/serde_as/index.html#re-exporting-serde_as
/// [serde-as-crate]: https://docs.rs/serde_with/1.6.3/serde_with/guide/serde_as/index.html#re-exporting-serde_as
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
#[proc_macro_derive(SerializeDisplay, attributes(serde_with))]
pub fn derive_serialize_display(item: TokenStream) -> TokenStream {
Expand Down
28 changes: 14 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#![doc(test(attr(warn(rust_2018_idioms))))]
// Not needed for 2018 edition and conflicts with `rust_2018_idioms`
#![doc(test(no_crate_inject))]
#![doc(html_root_url = "https://docs.rs/serde_with/1.6.2")]
#![doc(html_root_url = "https://docs.rs/serde_with/1.6.3")]
// Necessary to silence the warning about clippy::unknown_clippy_lints on nightly
#![allow(renamed_and_removed_lints)]
// Rust 1.45: introduction of `strip_prefix` used by clippy::manual_strip
Expand Down Expand Up @@ -59,7 +59,7 @@
//!
//! ```toml
//! [dependencies.serde_with]
//! version = "1.6.2"
//! version = "1.6.3"
//! features = [ "..." ]
//! ```
//!
Expand Down Expand Up @@ -198,13 +198,13 @@
//! # }
//! ```
//!
//! [`DisplayFromStr`]: https://docs.rs/serde_with/1.6.2/serde_with/struct.DisplayFromStr.html
//! [`with_prefix!`]: https://docs.rs/serde_with/1.6.2/serde_with/macro.with_prefix.html
//! [display_fromstr]: https://docs.rs/serde_with/1.6.2/serde_with/rust/display_fromstr/index.html
//! [feature flags]: https://docs.rs/serde_with/1.6.2/serde_with/guide/feature_flags/index.html
//! [skip_serializing_none]: https://docs.rs/serde_with/1.6.2/serde_with/attr.skip_serializing_none.html
//! [StringWithSeparator]: https://docs.rs/serde_with/1.6.2/serde_with/rust/struct.StringWithSeparator.html
//! [user guide]: https://docs.rs/serde_with/1.6.2/serde_with/guide/index.html
//! [`DisplayFromStr`]: https://docs.rs/serde_with/1.6.3/serde_with/struct.DisplayFromStr.html
//! [`with_prefix!`]: https://docs.rs/serde_with/1.6.3/serde_with/macro.with_prefix.html
//! [display_fromstr]: https://docs.rs/serde_with/1.6.3/serde_with/rust/display_fromstr/index.html
//! [feature flags]: https://docs.rs/serde_with/1.6.3/serde_with/guide/feature_flags/index.html
//! [skip_serializing_none]: https://docs.rs/serde_with/1.6.3/serde_with/attr.skip_serializing_none.html
//! [StringWithSeparator]: https://docs.rs/serde_with/1.6.3/serde_with/rust/struct.StringWithSeparator.html
//! [user guide]: https://docs.rs/serde_with/1.6.3/serde_with/guide/index.html
//! [with-annotation]: https://serde.rs/field-attrs.html#with

#[doc(hidden)]
Expand Down Expand Up @@ -340,7 +340,7 @@ impl Separator for CommaSeparator {
/// # }
/// ```
///
/// [serde_as]: https://docs.rs/serde_with/1.6.2/serde_with/attr.serde_as.html
/// [serde_as]: https://docs.rs/serde_with/1.6.3/serde_with/attr.serde_as.html
#[derive(Copy, Clone, Debug, Default)]
pub struct As<T: ?Sized>(PhantomData<T>);

Expand Down Expand Up @@ -807,7 +807,7 @@ pub struct BytesOrString;
/// ```
///
/// [`chrono::Duration`]: chrono_crate::Duration
/// [feature flag]: https://docs.rs/serde_with/1.6.2/serde_with/guide/feature_flags/index.html
/// [feature flag]: https://docs.rs/serde_with/1.6.3/serde_with/guide/feature_flags/index.html
#[derive(Copy, Clone, Debug, Default)]
pub struct DurationSeconds<
FORMAT: formats::Format = u64,
Expand Down Expand Up @@ -933,7 +933,7 @@ pub struct DurationSeconds<
/// ```
///
/// [`chrono::Duration`]: chrono_crate::Duration
/// [feature flag]: https://docs.rs/serde_with/1.6.2/serde_with/guide/feature_flags/index.html
/// [feature flag]: https://docs.rs/serde_with/1.6.3/serde_with/guide/feature_flags/index.html
#[derive(Copy, Clone, Debug, Default)]
pub struct DurationSecondsWithFrac<
FORMAT: formats::Format = f64,
Expand Down Expand Up @@ -1130,7 +1130,7 @@ pub struct DurationNanoSecondsWithFrac<
///
/// [`SystemTime`]: std::time::SystemTime
/// [DateTime]: chrono_crate::DateTime
/// [feature flag]: https://docs.rs/serde_with/1.6.2/serde_with/guide/feature_flags/index.html
/// [feature flag]: https://docs.rs/serde_with/1.6.3/serde_with/guide/feature_flags/index.html
#[derive(Copy, Clone, Debug, Default)]
pub struct TimestampSeconds<
FORMAT: formats::Format = i64,
Expand Down Expand Up @@ -1259,7 +1259,7 @@ pub struct TimestampSeconds<
///
/// [`SystemTime`]: std::time::SystemTime
/// [DateTime]: chrono_crate::DateTime
/// [feature flag]: https://docs.rs/serde_with/1.6.2/serde_with/guide/feature_flags/index.html
/// [feature flag]: https://docs.rs/serde_with/1.6.3/serde_with/guide/feature_flags/index.html
#[derive(Copy, Clone, Debug, Default)]
pub struct TimestampSecondsWithFrac<
FORMAT: formats::Format = f64,
Expand Down

0 comments on commit 9bc54e0

Please sign in to comment.