-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serde_extensions: Add helper methods for serialization
This patch adds helper methods to the Extension trait for serializing and deserializing requests and replies. This has two benefits: 1. It makes clear how requests and replies are serialized and that the format is not part of the public API. 2. It leads to a small decrease in binary size for the Nitrokey 3 firmware (ca. 2 kB) by marking these helpers as #[inline(never)]. My guess is that serialization was duplicated if mulitple backends implement the same extension.
- Loading branch information
1 parent
ccbbe3b
commit 459e5b4
Showing
1 changed file
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters