Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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(Edit: now done in #179)trussed-core
andtrussed
, I’ve added serialization and deserialization methods to theExtension
trait so thattrussed
does not need to make assumptions about the serialization mechanism used bytrussed-core
.We will probably want to make some more adjustments before releasing. This PR only intends to perform the split with minimal modifications.