Commit Graph
19 Commits
Author SHA1 Message Date
Sosthène Guédon 07fe70ab75 Add p384 and p521 tests to CI 2024-07-26 15:25:40 +02:00
Robin Krahl 2d7f632197 Add derive macros for Dispatch, ExtensionDispatch
This patch adds a new derive crate that can be used to derive
implementations of the trussed::backend::Dispatch and
trussed::serde_extensions::ExtensionDispatch traits.
2024-03-25 14:07:35 +01:00
Robin Krahl e35e5ce13c Fix compilation without default features
This patch fixes the compilation of all targets if the default features
are disabled and adds a CI job that checks this.

Fixes: https://github.com/trussed-dev/trussed/issues/90
2023-04-25 15:20:57 +02:00
Sosthène Guédon 216b8ac697 Rename the firmware CI to Firmwares 2023-04-06 13:59:50 +02:00
Robin Krahl 1c55b3b2dd Add serde_extension documentation
This patch adds some basic documentation for the serde_extensions
module.
2023-02-07 12:03:14 +01:00
Nicolas Stalder 882c3591ad Extend serde-extensions test with additional extension and backend 2023-02-07 12:03:14 +01:00
Robin Krahl e65d5031b8 Add API extensions
This patch adds API extensions to Trussed.  To avoid having to add a
type parameter to Request and Reply, we serialize the requests and
replies.  Extensions can be implemented by custom backends and are
executed by the dispatch implementation provided to the Service.  An
additional type parameter is needed for ClientImplementation to express
the supported extensions.  See tests/ext.rs for an example
implementation.

The serialization and deserialization of the requests and replies of
course adds additional overhead.  An alternative would be to make
Request and Reply generic over the set of extensions.
2023-02-07 12:03:14 +01:00
Robin Krahl 305bf1f44f Add docs check to CI 2023-01-30 16:02:27 +01:00
Robin Krahl 199df9dbb9 Pin Rust version to 1.66.1
This fixes an issue with Rust 1.67.0 and littlefs2, see:
	https://github.com/trussed-dev/littlefs2/issues/26
2023-01-27 14:35:45 +01:00
Robin Krahl 1f672f2d1c Run clippy in CI 2023-01-26 18:24:50 +01:00
Robin Krahl 1f3cb9db10 Add cargo check --all-features --all-targets to CI 2023-01-25 12:34:42 +01:00
Robin Krahl 9d2dfbde98 Fix formatting and check format in CI
This patch fixes a formatting error and adds a check to the CI that runs
`cargo fmt -- --check`.
2023-01-22 18:53:50 +01:00
Robin Krahl 9b9662d08e Build embedded runner for nk3 in CI 2022-12-20 15:25:14 +01:00
Robin Krahl 1cc4fd9694 Enable virt feature for tests in CI 2022-07-21 16:29:06 +02:00
Markus Meissner 05dbdcad7f gh-act: build solo2/nk3-fw repos for trussed-main 2022-06-27 13:56:35 +02:00
Nicolas Stalder 87e0c64ad9 Make things build again 2021-03-12 15:42:22 +01:00
Nicolas Stalder f969165064 Prepare for open sourcing 2021-02-20 16:13:48 +01:00
Nicolas Stalder f808583600 Extract mechanism-specific Client methods; shorten Ed255; add documentation 2021-02-07 00:40:47 +01:00
Nicolas Stalder 8ec47f0fcd Use published libraries only. Add CI 2021-02-01 01:59:01 +01:00