85 Commits
Author SHA1 Message Date
Robin Krahl 0e38403374 Release apdu-dispatch v0.4.1 dispatch-0.4.1 2026-10-08 19:22:11 +02:00
Robin Krahl 8381e2cbe9 Simplify find_apps signature 2026-10-08 19:19:25 +02:00
Robin Krahl 6b618a81b0 Call App::deselect for deselected (not selected) app
Fixes: https://github.com/trussed-dev/apdu-dispatch/issues/36
2026-10-08 19:16:15 +02:00
Robin Krahl 6ccc11d156 Add tests for app selection 2026-10-08 19:03:10 +02:00
Robin Krahl 918cc584aa Release apdu-app v0.2.0 and apdu-dispatch v0.4.0 app-0.2.0 dispatch-0.4.0 2026-03-25 11:29:01 +01:00
Robin Krahl 7e64872c97 Add trusted publishing 2026-03-24 13:07:42 +01:00
Sosthène Guédon 931c4269d1 Fix CI 2025-10-06 16:16:08 +02:00
Sosthène Guédon 0cc45c27ff Fix clippy lint 2025-10-06 16:16:08 +02:00
Sosthène Guédon e7b3b2d8db Update to heapless 0.9.1 and iso7816 0.2.0 2025-10-06 16:16:08 +02:00
Sosthène Guédon edf19e997a Dispatch: update changelog and prepare release 0.3.1
The 0.3.0 release was also not linked to in the changelog
0.3.1
2025-02-12 15:35:35 +01:00
Sosthène Guédon 228013cecc Do not deselect applications if the application was not found 2025-02-12 14:58:52 +01:00
Robin Krahl 7e68a8d471 Release apdu-app v0.1.0 and apdu-dispatch v0.3.0 0.3.0 app-0.1.0 2024-10-18 09:47:43 +02:00
Robin Krahl c675f9107a Replace iso7816::Command with iso7816::command::CommandView
This allows us to drop one generic parameter from the App trait and
potentially generate more efficient code.
2024-08-13 17:55:56 +02:00
Robin Krahl 6994b0ae96 Extract app trait into apdu-app
Currently, all APDU applications depend on apdu-dispatch to implement
the App trait.  This means that they also need to be updated if the
dispatch implementation is changed.  This causes unnecessary releases
and maintenance work.  By introducing the apdu-app crate, we can change
the dispatch implementation without affecting the applications.
2024-06-05 13:25:02 +02:00
Sosthène Guédon 1037f94b82 Fix clippy warnings 2024-02-16 11:50:13 +01:00
Sosthène Guédon a4d938a33f Select the application even if the call to SELECT returns a non-success error code 2024-02-16 11:50:13 +01:00
Robin Krahl a4b85418be Release v0.2.0 0.2.0 2023-11-22 14:43:28 +01:00
Sosthène Guédon 915fc23710 Update changelog 2023-11-08 11:59:32 +01:00
Sosthène Guédon 3fa6c64a6d Avoid use of .unwrap 2023-11-08 11:59:32 +01:00
Sosthène Guédon d489d5e9a9 Fix compilation
The breakage was caused by a rebase
2023-11-08 11:59:32 +01:00
Sosthène Guédon 2264dd19dc Fix test compilation 2023-11-08 10:55:55 +01:00
Sosthène Guédon 066cb9493e Add interface to select call
This allows application that do not support NFC to reject operations comming from NFC
Previously Select calls could not be rejected.
2023-11-08 10:55:55 +01:00
Sosthène Guédon f8d5e7738e Update changelog 2023-06-28 09:13:20 +02:00
Sosthène Guédon 52026467ef Reject commands from multiple transports
Apdu-dispatch does not have proper support for multiple concurrent
transport since there are no separate selection for each app.

The proper solution would be to have separate buffers and selection per transport,
but that would also require apps to actually deal with multiple interfaces, which they currently do not.

This patch makes it so that the first command sets the used transport, and that
 any command comming from another transport will be rejected.
2023-06-28 09:13:20 +02:00
Sosthène Guédon b72d5eb9f4 Add Channel helper type 2023-06-08 10:24:23 +02:00