From 024d249c99df4788807797e1f5f0df3d356ac824 Mon Sep 17 00:00:00 2001 From: Konrad Kohbrok Date: Mon, 20 Nov 2023 08:50:57 +0100 Subject: [PATCH 1/2] publish attribute macro --- tls_codec/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tls_codec/src/lib.rs b/tls_codec/src/lib.rs index 7693f193b..3a01567ee 100644 --- a/tls_codec/src/lib.rs +++ b/tls_codec/src/lib.rs @@ -55,6 +55,9 @@ pub use tls_codec_derive::{ TlsDeserialize, TlsDeserializeBytes, TlsSerialize, TlsSerializeBytes, TlsSize, }; +#[cfg(feature = "conditional_deserialization")] +pub use tls_codec_derive::conditionally_deserializable; + /// Errors that are thrown by this crate. #[derive(Debug, Eq, PartialEq, Clone)] pub enum Error { From 48316a2b8f9c1b3815a45d635f932706a7401300 Mon Sep 17 00:00:00 2001 From: Konrad Kohbrok Date: Mon, 20 Nov 2023 14:17:40 +0100 Subject: [PATCH 2/2] bump pre-release version --- Cargo.lock | 4 ++-- tls_codec/Cargo.toml | 12 ++++++------ tls_codec/derive/Cargo.toml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 945e2c72e..2dc47ee76 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1589,7 +1589,7 @@ dependencies = [ [[package]] name = "tls_codec" -version = "0.4.0-pre.2" +version = "0.4.0-pre.3" dependencies = [ "anstyle", "anstyle-parse", @@ -1605,7 +1605,7 @@ dependencies = [ [[package]] name = "tls_codec_derive" -version = "0.4.0-pre.2" +version = "0.4.0-pre.3" dependencies = [ "proc-macro2", "quote", diff --git a/tls_codec/Cargo.toml b/tls_codec/Cargo.toml index 217e69166..65631c133 100644 --- a/tls_codec/Cargo.toml +++ b/tls_codec/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tls_codec" -version = "0.4.0-pre.2" +version = "0.4.0-pre.3" authors = ["RustCrypto Developers"] license = "Apache-2.0 OR MIT" documentation = "https://docs.rs/tls_codec/" @@ -18,14 +18,14 @@ 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-pre.2", path = "./derive", optional = true } +tls_codec_derive = { version = "=0.4.0-pre.3", path = "./derive", optional = true } serde = { version = "1.0.184", features = ["derive"], optional = true } [dev-dependencies] -clap = "=4.3.23" # pinned to preserve MSRV -clap_lex = "=0.5.0" # pinned to preserve MSRV -anstyle = "=1.0.2" # pinned to preserve MSRV -anstyle-parse = "=0.2.1" # pinned to preserve MSRV +clap = "=4.3.23" # pinned to preserve MSRV +clap_lex = "=0.5.0" # pinned to preserve MSRV +anstyle = "=1.0.2" # pinned to preserve MSRV +anstyle-parse = "=0.2.1" # pinned to preserve MSRV criterion = { version = "0.5", default-features = false } regex = "1.8" diff --git a/tls_codec/derive/Cargo.toml b/tls_codec/derive/Cargo.toml index 1fca2ab83..ce57c584d 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-pre.2" +version = "0.4.0-pre.3" authors = ["RustCrypto Developers"] license = "Apache-2.0 OR MIT" documentation = "https://docs.rs/tls_codec_derive/"