-
Notifications
You must be signed in to change notification settings - Fork 26
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 support for listing configs #538
Conversation
d13419b
to
169f491
Compare
No significant changes. Insignifcant changes
|
6034e00
to
de9bee2
Compare
I wonder where the 6k binary size is coming from. My first guess was serialization, and we could offload that to a macro or build script, but a quick test replacing the fields with an empty slice only yields less than 500 bytes. Very confusing. |
de9bee2
to
77c2dfa
Compare
My guess is the added serialization to a |
Ah, by using upstream |
Normally I added both back. The patch points to trussed-dev/cbor-smol#14 and trussed-dev/cbor-smol#8 implements #3 |
It didn't fit without. |
Oh, sorry, I must have ended up on the wrong branch. Anyway, just applying the |
The heapless change is used in admin app (because |
21b53a3
to
ed7860e
Compare
I think I found a way to improve that by making the |
ed7860e
to
f05d32c
Compare
Starting from the current main (fca2d32), I get these numbers for NK3xN with test:
Conclusions:
|
9ea87bb
to
f54745e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you! It looks like the CI is confused because #539 includes the same commit – to be investigated.
Cargo.toml
Outdated
fido-authenticator = { git = "https://github.com/Nitrokey/fido-authenticator.git", tag = "v0.1.1-nitrokey.20" } | ||
lpc55-hal = { git = "https://github.com/Nitrokey/lpc55-hal", tag = "v0.3.0-nitrokey.2" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused patch
@@ -1118,7 +1139,7 @@ mod tests { | |||
}, | |||
fs_version: 1, | |||
}; | |||
let data: Bytes<1024> = cbor_serialize_bytes(&config).unwrap(); | |||
let data: heapless_bytes::Bytes<1024> = cbor_serialize_bytes(&config).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could directly replace this with a cbor_serialize
into an array so that we don’t have to update it in the future (and we don’t need to add the explicit heapless_bytes
dependency).
68a5cbc
to
2c4be6a
Compare
2c4be6a
to
76591a5
Compare
Depends on