Skip to content
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
2 changes: 1 addition & 1 deletion Cargo.lock

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

24 changes: 24 additions & 0 deletions ssh-derive/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,29 @@ 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.4.0 (2026-12-04)
### Added
- Use `#[ssh(error = crate::Error)]` on a struct or enum to select its derived `Decode::Error`. The default is `ssh_encoding::Error` ([#665])

### Changed
- Upgrade the `syn` dependency from v2 to v3 ([#576])
- Derived `Decode::decode` implementations now take `&mut Decoder<impl Reader>` to match
the `ssh-encoding` 0.4 API ([#618])
- Both derives now reject `#[ssh(...)]` attributes on enum variants at compile time.
Earlier versions silently ignored these attributes ([#644])

### Fixed
- Use the four-byte SSH wire length for `#[repr(usize)]` enum discriminants on 64-bit
targets and preserve unknown `usize` tags in `Error::InvalidDiscriminant` ([#643])
- Match enum discriminants by their evaluated value when decoding. For example, a variant
declared with `1 | 2` accepts only the wire tag `3` ([#643])
- Allow enum variants with a field named `writer` to derive `Encode` ([#643])

[#576]: https://github.com/RustCrypto/SSH/pull/576
[#618]: https://github.com/RustCrypto/SSH/pull/618
[#643]: https://github.com/RustCrypto/SSH/pull/643
[#644]: https://github.com/RustCrypto/SSH/pull/644
[#665]: https://github.com/RustCrypto/SSH/pull/665

## 0.3.0 (2026-05-10)
Initial release. Earlier versions skipped to match v0.3 release of `ssh-cipher`/`ssh-encoding`.
2 changes: 1 addition & 1 deletion ssh-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ssh-derive"
version = "0.4.0-rc.0"
version = "0.4.0"
description = "Custom derive support for the `ssh-encoding` crate"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
Expand Down
2 changes: 1 addition & 1 deletion ssh-encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ bytes = { version = "1.11", optional = true, default-features = false }
ctutils = { version = "0.4.8", optional = true, default-features = false }
digest = { version = "0.11", optional = true, default-features = false }
pem-rfc7468 = { version = "1", optional = true }
ssh-derive = { version = "0.4.0-rc.0", optional = true }
ssh-derive = { version = "0.4", optional = true }
zeroize = { version = "1.8", optional = true, default-features = false }

[dev-dependencies]
Expand Down