Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serdect v0.3.0 #1631

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

## 0.3.0 (2025-01-06)

NOTE: this release includes major breaking changes to the wire format, namely
all bytestrings now include a length prefix, even when serializing fixed-size
arrays. This is intended to work around deficiencies in the `serde` API
(see serde-rs/serde#2120) as well as serde-based format implementations which
have variable-time behavior when using `serialize_tuple`.

Any binary data serialized with previous versions of `serdect` now needs a
length prefix prepended to the data, which will vary depending on the
particular data format.

### Changed
- Switch to length-prefixed encoding using the `serialize_bytes` method ([#1112], [#1515])
- MSRV 1.70 ([#1244])

[#1112]: https://github.com/RustCrypto/formats/pull/1112
[#1515]: https://github.com/RustCrypto/formats/pull/1515
[#1244]: https://github.com/RustCrypto/formats/pull/1244

## 0.2.0 (2023-02-26)
### Changed
- MSRV 1.60 ([#802])
Expand Down
4 changes: 2 additions & 2 deletions serdect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = """
Constant-time serde serializer/deserializer helpers for data that potentially
contains secrets (e.g. cryptographic keys)
"""
version = "0.3.0-rc.0"
version = "0.3.0"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
homepage = "https://github.com/RustCrypto/formats/tree/master/serdect"
Expand All @@ -19,7 +19,7 @@ rust-version = "1.70"
base16ct = { version = "0.2", default-features = false }
serde = { version = "1.0.184", default-features = false }

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

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion serdect/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use serde::{
};

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

#[cfg(not(feature = "alloc"))]
use serde::ser::Error as SerError;
Expand Down
Loading