11 Commits

Author SHA1 Message Date
Robin Krahl
dd8d25232b Release ctaphid-dispatch v0.3.0
This release makes Dispatch generic over the buffer size.
2025-03-21 18:58:32 +01:00
Robin Krahl
9a92c88a3b dispatch: Make Dispatch generic over buffer size
The fixed buffer size can be problematic for some use cases, see:
- https://github.com/trussed-dev/ctaphid-dispatch/pull/15

To avoid adding support for different buffer sizes to the crate, we can
just make the dispatch implementation generic over the buffer size.  For
simple cases, a type alias is provided using the old buffer size.
2025-03-21 18:58:31 +01:00
Robin Krahl
e638d27fb8 Add missing log-trace feature
This fixes a new compiler warning.
2025-03-21 18:58:20 +01:00
Robin Krahl
20017616a7 Release ctaphid-dispatch v0.2.0 2025-01-08 18:23:40 +01:00
Robin Krahl
753fec94e1 Cleanup ctaphid-dispatch API
This patch flattens the public API of ctaphid-dispatch by making the
dispatch and types modules private and re-exporting the relevant types
from the root and removes unnecessary re-exports of the types defined by
ctaphid-app.
2025-01-08 18:23:39 +01:00
Robin Krahl
98b846ca2f Release ctaphid-app v0.1.0 2025-01-08 18:22:00 +01:00
Robin Krahl
5a2864c76f Release ctaphid-app v0.1.0-rc.1 2025-01-08 09:41:01 +01:00
Robin Krahl
871f0930ea Remove unused ShortMessage type 2025-01-07 19:30:01 +01:00
Robin Krahl
4b359ee7bf Replace heapless dependency with heapless-bytes 2025-01-07 19:29:19 +01:00
Robin Krahl
adb51a2bf8 Make App trait generic over response size
The buffer size is an implementation detail of the dispatch
implementation.  Applications should not depend on it.  This patch makes
the App trait generic over the response size and changes the request
argument to use a slice instead of a reference to a heapless::Vec.

If applications need a minimum response size, they can still use a
const assertion to enforce it.
2025-01-04 12:41:22 +01:00
Robin Krahl
21f09314d1 Extract App trait into ctaphid-app
Applications don’t need to depend on the dispatch implementation.  They
only need the App trait.  This patch moves the trait into a separate
crate.
2025-01-04 12:34:44 +01:00