diff --git a/Cargo.lock b/Cargo.lock index f3d81ebd1..149d8346b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1696,6 +1696,16 @@ dependencies = [ [[package]] name = "tls_codec" version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38a1d5fcfa859f0ec2b5e111dc903890bd7dac7f34713232bf9aa4fd7cad7b2" +dependencies = [ + "tls_codec_derive 0.4.0", + "zeroize", +] + +[[package]] +name = "tls_codec" +version = "0.4.1-pre.1" dependencies = [ "anstyle", "anstyle-parse", @@ -1705,18 +1715,29 @@ dependencies = [ "criterion", "regex", "serde", - "tls_codec_derive", + "tls_codec_derive 0.4.1-pre.1", "zeroize", ] [[package]] name = "tls_codec_derive" version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8e00e3e7a54e0f1c8834ce72ed49c8487fbd3f801d8cfe1a0ad0640382f8e15" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tls_codec_derive" +version = "0.4.1-pre.1" dependencies = [ "proc-macro2", "quote", "syn", - "tls_codec", + "tls_codec 0.4.1-pre.1", "trybuild", ] @@ -1980,7 +2001,7 @@ dependencies = [ "signature", "spki", "tempfile", - "tls_codec", + "tls_codec 0.4.0", "tokio", "x509-cert-test-support", ] diff --git a/tls_codec/CHANGELOG.md b/tls_codec/CHANGELOG.md index 0b6bc3fc5..3d6397e3a 100644 --- a/tls_codec/CHANGELOG.md +++ b/tls_codec/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## 0.4.1 + +- [#1284](https://github.com/RustCrypto/formats/pull/1284): implement `U24`. A `U24` integer type can be used for length encoding in three bytes. +- [#1159](https://github.com/RustCrypto/formats/pull/1159): Read and write all available data in `VLBytes`. Before this change the read or write may have failed when it couldn't be read/written all at once. +- [#1330](https://github.com/RustCrypto/formats/pull/1330): Introduce helper macro for conditional deserialization. This change introduces the `#[tls_codec(cd_field)]` macro. It can be used alongside the `#[conditionally_deserializable]` macro to mark fields that are also conditionally deserializable and that internally need to have the const generic added. + +## 0.4.0 + ### Changed - [#1251](https://github.com/RustCrypto/formats/pull/1251): Add `_bytes` suffix to function names in the `DeserializeBytes` trait to avoid collisions with function names in the `Deserialize` trait diff --git a/tls_codec/Cargo.toml b/tls_codec/Cargo.toml index a407d7421..882441a6a 100644 --- a/tls_codec/Cargo.toml +++ b/tls_codec/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tls_codec" -version = "0.4.0" +version = "0.4.1-pre.1" authors = ["RustCrypto Developers"] license = "Apache-2.0 OR MIT" documentation = "https://docs.rs/tls_codec/" @@ -18,7 +18,7 @@ zeroize = { version = "1.7", default-features = false, features = [ # optional dependencies arbitrary = { version = "1.3", features = ["derive"], optional = true } -tls_codec_derive = { version = "=0.4.0", path = "./derive", optional = true } +tls_codec_derive = { version = "=0.4.1-pre.1", path = "./derive", optional = true } serde = { version = "1.0.184", features = ["derive"], optional = true } [dev-dependencies] diff --git a/tls_codec/derive/Cargo.toml b/tls_codec/derive/Cargo.toml index a667659b2..b8a91d5e4 100644 --- a/tls_codec/derive/Cargo.toml +++ b/tls_codec/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tls_codec_derive" -version = "0.4.0" +version = "0.4.1-pre.1" authors = ["RustCrypto Developers"] license = "Apache-2.0 OR MIT" documentation = "https://docs.rs/tls_codec_derive/"