diff --git a/CHANGELOG.md b/CHANGELOG.md index edf6651..6cdefb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,9 @@ -## v0.1013.0-dev - -### Breaking changes - -### New features +## v0.1012.1 ### Fixes -### Cleanups +* Internals macros: Fixed the `empty_state_via_for_overwrite` macro, which was + incompletely implemented and still referenced the `Default` trait. ## v0.1012.0 diff --git a/Cargo.toml b/Cargo.toml index 4d707f6..83aad9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bilrost" -version = "0.1013.0-dev" +version = "0.1012.1" authors = [ "Kent Ross ", "Dan Burkert ", @@ -39,7 +39,7 @@ harness = false [dependencies] arrayvec = { version = ">=0.6", default-features = false, optional = true } -bilrost-derive = { version = "=0.1013.0-dev", path = "bilrost-derive", optional = true } +bilrost-derive = { version = "=0.1012.1", path = "bilrost-derive", optional = true } bstr = { version = ">=1", default-features = false, features = ["alloc"], optional = true } bytes = { version = "1", default-features = false } bytestring = { version = ">=1", default-features = false, optional = true } diff --git a/README.md b/README.md index 55b66b2..d80dd90 100644 --- a/README.md +++ b/README.md @@ -369,7 +369,7 @@ To use `bilrost`, we first add it as a dependency in `Cargo.toml`, either with `cargo add bilrost` or manually: ```toml -bilrost = "0.1013.0-dev" +bilrost = "0.1012" ``` Then, we derive `bilrost::Message` for our struct type: @@ -495,7 +495,7 @@ To enable `no_std` support, disable the `std` features in `bilrost` (and ```toml [dependencies] -bilrost = { version = "0.1013.0-dev", default-features = false, features = ["derive"] } +bilrost = { version = "0.1012", default-features = false, features = ["derive"] } ``` ### Derive macros diff --git a/bilrost-derive/Cargo.toml b/bilrost-derive/Cargo.toml index 18c85cf..c8dd122 100644 --- a/bilrost-derive/Cargo.toml +++ b/bilrost-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bilrost-derive" -version = "0.1013.0-dev" +version = "0.1012.1" authors = [ "Kent Ross ", "Dan Burkert ", diff --git a/bilrost-derive/src/lib.rs b/bilrost-derive/src/lib.rs index 25604c4..5b3c34b 100644 --- a/bilrost-derive/src/lib.rs +++ b/bilrost-derive/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/bilrost-derive/0.1013.0-dev")] +#![doc(html_root_url = "https://docs.rs/bilrost-derive/0.1012.1")] // The `quote!` macro requires deep recursion. #![recursion_limit = "4096"] #![no_std] diff --git a/bilrost-types/Cargo.toml b/bilrost-types/Cargo.toml index 5f510e2..b7cef92 100644 --- a/bilrost-types/Cargo.toml +++ b/bilrost-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bilrost-types" -version = "0.1013.0-dev" +version = "0.1012.1" authors = [ "Kent Ross ", "Dan Burkert ", @@ -20,11 +20,11 @@ rust-version = "1.65" doctest = false [dependencies] -bilrost = { version = "=0.1013.0-dev", path = "..", default-features = false, features = ["derive"] } +bilrost = { version = "=0.1012.1", path = "..", default-features = false, features = ["derive"] } serde_json = { version = "1", default-features = false, features = ["alloc", "float_roundtrip"], optional = true } [dev-dependencies] -bilrost = { version = "=0.1013.0-dev", path = "..", default-features = false, features = ["derive"] } +bilrost = { version = "=0.1012.1", path = "..", default-features = false, features = ["derive"] } proptest = "1" [features] diff --git a/bilrost-types/src/lib.rs b/bilrost-types/src/lib.rs index bbf84dd..7245883 100644 --- a/bilrost-types/src/lib.rs +++ b/bilrost-types/src/lib.rs @@ -1,5 +1,5 @@ #![no_std] -#![doc(html_root_url = "https://docs.rs/bilrost-types/0.1013.0-dev")] +#![doc(html_root_url = "https://docs.rs/bilrost-types/0.1012.1")] //! Analogs for protobuf well-known types, implemented alongside the //! [`bilrost`][bilrost] crate. See that crate's documentation for details about the diff --git a/src/encoding/value_traits.rs b/src/encoding/value_traits.rs index e35b4b6..d3dd1a6 100644 --- a/src/encoding/value_traits.rs +++ b/src/encoding/value_traits.rs @@ -63,12 +63,12 @@ macro_rules! empty_state_via_for_overwrite { ) => { impl<$($($generics)*)?> $crate::encoding::EmptyState for $ty where - Self: ::core::default::Default + ::core::cmp::PartialEq, + Self: $crate::encoding::ForOverwrite + ::core::cmp::PartialEq, $($($where_clause)*)? { #[inline] fn is_empty(&self) -> bool { - *self == Self::default() + *self == Self::empty() } #[inline] diff --git a/src/lib.rs b/src/lib.rs index 1d147ad..e8fd1d4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/mumbleskates/bilrost/bilrost/logo/bilrost256.jpg" )] -#![doc(html_root_url = "https://docs.rs/bilrost/0.1013.0-dev")] +#![doc(html_root_url = "https://docs.rs/bilrost/0.1012.1")] #![no_std] #![forbid(unsafe_op_in_unsafe_fn)]