Skip to content

Commit f8d280b

Browse files
authored
serdect v0.3.0 (#1631)
1 parent eb1d440 commit f8d280b

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

serdect/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 0.3.0 (2025-01-06)
8+
9+
NOTE: this release includes major breaking changes to the wire format, namely
10+
all bytestrings now include a length prefix, even when serializing fixed-size
11+
arrays. This is intended to work around deficiencies in the `serde` API
12+
(see serde-rs/serde#2120) as well as serde-based format implementations which
13+
have variable-time behavior when using `serialize_tuple`.
14+
15+
Any binary data serialized with previous versions of `serdect` now needs a
16+
length prefix prepended to the data, which will vary depending on the
17+
particular data format.
18+
19+
### Changed
20+
- Switch to length-prefixed encoding using the `serialize_bytes` method ([#1112], [#1515])
21+
- MSRV 1.70 ([#1244])
22+
23+
[#1112]: https://github.com/RustCrypto/formats/pull/1112
24+
[#1515]: https://github.com/RustCrypto/formats/pull/1515
25+
[#1244]: https://github.com/RustCrypto/formats/pull/1244
26+
727
## 0.2.0 (2023-02-26)
828
### Changed
929
- MSRV 1.60 ([#802])

serdect/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = """
44
Constant-time serde serializer/deserializer helpers for data that potentially
55
contains secrets (e.g. cryptographic keys)
66
"""
7-
version = "0.3.0-rc.0"
7+
version = "0.3.0"
88
authors = ["RustCrypto Developers"]
99
license = "Apache-2.0 OR MIT"
1010
homepage = "https://github.com/RustCrypto/formats/tree/master/serdect"
@@ -19,7 +19,7 @@ rust-version = "1.70"
1919
base16ct = { version = "0.2", default-features = false }
2020
serde = { version = "1.0.184", default-features = false }
2121

22-
# optional features
22+
# optional featuresw
2323
zeroize = { version = "1", optional = true, default-features = false }
2424

2525
[dev-dependencies]

serdect/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use serde::{
77
};
88

99
#[cfg(feature = "alloc")]
10-
use ::{alloc::vec::Vec, serde::Serialize};
10+
use {alloc::vec::Vec, serde::Serialize};
1111

1212
#[cfg(not(feature = "alloc"))]
1313
use serde::ser::Error as SerError;

0 commit comments

Comments
 (0)