From 5d649ebc292a085f0eef45cc05fa809e932f0892 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 22 Jul 2026 12:49:31 +0200 Subject: [PATCH 1/2] Add trusted publishing to crates.io --- .github/workflows/cd.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..535f59a --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,19 @@ +name: Continuous delivery - crates.io + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + environment: crates.io + permissions: + id-token: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} From cec292fed8f5937fc9ebb382f646580d3b4b7933 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 22 Jul 2026 12:58:55 +0200 Subject: [PATCH 2/2] Update to trussed v0.2 and release v0.1.0 --- CHANGELOG.md | 6 +++--- Cargo.lock | 14 +++++++------- Cargo.toml | 8 ++++---- src/lib.rs | 6 +++++- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ca6a12..87d3961 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,8 @@ - -[All Changes](https://github.com/trussed-dev/pc-usbip-runner/compare/v0.1.0-rc.1...HEAD) +[All Changes](https://github.com/trussed-dev/pc-usbip-runner/compare/v0.1.0...HEAD) -## [v0.1.0-rc.1](https://github.com/trussed-dev/pc-usbip-runner/releases/tag/v0.1.0-rc.1) (2026-06-09) +## [v0.1.0](https://github.com/trussed-dev/pc-usbip-runner/releases/tag/v0.1.0) (2026-06-22) -Initial release for `trussed` v0.2.0-rc.1. +Initial release for `trussed` v0.2.0. diff --git a/Cargo.lock b/Cargo.lock index 40afbf8..1851c6f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -764,9 +764,9 @@ dependencies = [ [[package]] name = "littlefs2" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8022e5141ceff5b7b12897113f54fc9dac5ad36402c787941c97272b9241eb" +checksum = "3e00aee790b8914c83815e9f6952731f4ddd9965c160aa66fe2a89abeb5c406a" dependencies = [ "bitflags 2.9.4", "delog", @@ -789,9 +789,9 @@ dependencies = [ [[package]] name = "littlefs2-sys" -version = "0.3.2" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae112b732df34c1420471e1ff21c562dfdf81219efb5960dd15b3947097e784a" +checksum = "999d08bb7fae46d63ecb98d2474d28f7af1a6c928a51b4dfe5f1804abf9afc46" dependencies = [ "bindgen", "cc", @@ -1470,9 +1470,9 @@ dependencies = [ [[package]] name = "trussed" -version = "0.2.0-rc.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "400475917c40f07716c84b201a363012f6c9b1acdb4b38a5ed05e227539cd05c" +checksum = "7b5782830442198b88886b5e165b61b4626cda85316b7912e563950e65fa5e20" dependencies = [ "aead", "aes", @@ -1520,7 +1520,7 @@ dependencies = [ [[package]] name = "trussed-usbip" -version = "0.1.0-rc.1" +version = "0.1.0" dependencies = [ "apdu-dispatch", "clap", diff --git a/Cargo.toml b/Cargo.toml index 80e8e02..538981d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trussed-usbip" -version = "0.1.0-rc.1" +version = "0.1.0" description = "USBIP runner for trussed applications" authors = ["The Trussed developers", "Nicolas Stalder ", "Conor Patrick ", "Szczepan Zalega "] repository = "https://github.com/trussed-dev/pc-usbip-runner" @@ -13,7 +13,7 @@ littlefs2-core = "0.1" log = { version = "0.4.14", default-features = false } rand_chacha = { version = "0.3", default-features = false } rand_core = { version = "0.6", features = ["getrandom"] } -trussed = { version = "=0.2.0-rc.1", default-features = false, features = ["log-all", "virt"] } +trussed = { version = "0.2", default-features = false, features = ["log-all", "virt"] } usb-device = { version = "0.2.7", default-features = false } usbip-device = "0.1.5" @@ -30,9 +30,9 @@ clap = { version = "3.0.0", features = ["derive"] } clap-num = "1.0.0" delog = { version = "0.1.6", features = ["std-log"] } heapless-bytes = "0.5" -littlefs2 = "0.7" +littlefs2 = "0.8" pretty_env_logger = "0.4.0" -trussed = "=0.2.0-rc.1" +trussed = "0.2" trussed-core = "0.2" [features] diff --git a/src/lib.rs b/src/lib.rs index 74d9db2..b61622c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,6 +104,8 @@ impl store::Store for Store { } } +unsafe impl Send for Store {} + pub struct Platform { rng: ChaCha8Rng, store: Store, @@ -144,10 +146,12 @@ pub struct Runner { _marker: PhantomData, } -impl<'interrupt, D: Dispatch, A: Apps<'interrupt, D>> Runner +impl<'interrupt, D, A> Runner where + D: Dispatch + Send, D::BackendId: Send + Sync, D::Context: Send + Sync, + A: Apps<'interrupt, D>, { pub fn builder(options: Options) -> Builder { Builder::new(options)