Skip to content

Commit 96bf04e

Browse files
Replace trussed dependency with trussed-core
1 parent 6edcb14 commit 96bf04e

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ categories = ["embedded", "no-std"]
1313
ctaphid-dispatch = "0.1.0"
1414
embedded-time = "0.12"
1515
delog = "0.1.0"
16-
heapless = "0.7"
1716
heapless-bytes = "0.3"
1817
interchange = "0.3.0"
1918
serde = { version = "1.0", default-features = false }
2019
usb-device = "0.2.3"
2120
ref-swap = "0.1.2"
22-
trussed = "0.1.0"
21+
trussed-core = "0.1.0-rc.1"
2322

2423

2524
[features]
@@ -33,5 +32,4 @@ log-warn = []
3332
log-error = []
3433

3534
[patch.crates-io]
36-
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "57cb3317878a8593847595319aa03ef17c29ec5b" }
37-
trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "51e68500d7601d04f884f5e95567d14b9018a6cb" }
35+
ctaphid-dispatch = { git = "https://github.com/trussed-dev/ctaphid-dispatch.git", rev = "5a2864c76fea6785d9ffe4c7b6596237d8378755" }

src/class.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use embedded_time::duration::Extensions;
55
use ref_swap::OptionRefSwap;
6-
use trussed::interrupt::InterruptFlag;
6+
use trussed_core::InterruptFlag;
77

88
use crate::{
99
constants::{INTERRUPT_POLL_MILLISECONDS, PACKET_SIZE},

src/pipe.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ use core::sync::atomic::Ordering;
2020

2121
use ctaphid_dispatch::command::Command;
2222
use ctaphid_dispatch::types::Requester;
23-
24-
use trussed::interrupt::InterruptFlag;
25-
23+
use heapless_bytes::Bytes;
2624
use ref_swap::OptionRefSwap;
25+
use trussed_core::InterruptFlag;
2726
// use serde::Serialize;
2827
use usb_device::{
2928
bus::UsbBus,
@@ -536,7 +535,7 @@ impl<'alloc, 'pipe, 'interrupt, Bus: UsbBus> Pipe<'alloc, 'pipe, 'interrupt, Bus
536535
}
537536
match self.interchange.request((
538537
request.command,
539-
heapless::Vec::from_slice(&self.buffer[..request.length as usize]).unwrap(),
538+
Bytes::from_slice(&self.buffer[..request.length as usize]).unwrap(),
540539
)) {
541540
Ok(_) => {
542541
self.state = State::WaitingOnAuthenticator(request);

0 commit comments

Comments
 (0)