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

Add trussed-core crate #178

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add trussed-core crate #178

wants to merge 5 commits into from

Conversation

robin-nitrokey
Copy link
Member

@robin-nitrokey robin-nitrokey commented Oct 31, 2024

This PR adds the trussed-core crate (#177) and moves the relevant modules fully or partially to it:

  • api
  • client (only *Client and mechanism traits as well as error and result types)
  • config (only relevant constants)
  • error
  • interrupt
  • serde_extensions (only client traits and error and result types)
  • types (only those types used by other modules)

All moved types are re-exported from their old locations, so this is a compatible change for Trussed’s dependents. As the extension request and reply serialization and deserialization is now split between trussed-core and trussed, I’ve added serialization and deserialization methods to the Extension trait so that trussed does not need to make assumptions about the serialization mechanism used by trussed-core. (Edit: now done in #179)

We will probably want to make some more adjustments before releasing. This PR only intends to perform the split with minimal modifications.

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