Skip to content

Conversation

@haitaohuang
Copy link

@haitaohuang haitaohuang commented Jan 9, 2026

This commit removes dependency on the unmaintained bincode crate which was flagged by cargo deny advisory RUSTSEC-2025-0141.

Changes made:

  1. Upgraded sev dependency (6.2.1 → 7.1.0)

    • sev v7 no longer depends on bincode
    • Added ByteParser import for API compatibility
  2. Migrated to zerocopy for hardware protocol parsing

    • All repr(C) structures now use zerocopy::FromBytes/ToBytes
    • Zero-copy safe casting for SNP reports, TDX reports, vTPM quotes
    • Custom serialize/deserialize for variable sized HclReport fields and quote

Tested with:
cargo test --workspace

Fixes:
#84

This commit removes dependency on the unmaintained bincode crate
which was flagged by cargo deny advisory RUSTSEC-2025-0141.

Changes made:

1. **Upgraded sev dependency** (6.2.1 → 7.1.0)
   - sev v7 no longer depends on bincode
   - Added ByteParser import for API compatibility

2. **Migrated to zerocopy for hardware protocol parsing**
   - All repr(C) structures now use zerocopy::FromBytes/ToBytes
   - Zero-copy safe casting for SNP reports, TDX reports, vTPM quotes
   - Custom serialize/deserialize for variable sized HclReport fields
     and quote

Tested with:
   cargo test --workspace

Fixes:
kinvolk#84

Co-authored-by: GitHub Copilot <[email protected]>
Signed-off-by: Haitao Huang <[email protected]>
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