Skip to content

ssh-derive v0.4.0 - #667

Merged
tarcieri merged 1 commit into
masterfrom
ssh-derive/v0.4.0
Dec 5, 2026
Merged

tarcieri merged 1 commit into
masterfrom
ssh-derive/v0.4.0

Conversation

@tarcieri

@tarcieri tarcieri commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

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)

@tarcieri
tarcieri merged commit 50d5e48 into master Dec 5, 2026
23 checks passed
@tarcieri
tarcieri deleted the ssh-derive/v0.4.0 branch December 5, 2026 01:36
@tarcieri tarcieri mentioned this pull request Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant