Skip to content

Commit

Permalink
Fix Trussed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Apr 4, 2024
1 parent 0ba0e76 commit 2abefc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ apdu-dispatch = "0.1"
cbor-smol = "0.4.0"
ctaphid-dispatch = "0.1"
delog = "0.1"
heapless = "0.7"
iso7816 = "0.1"
littlefs2 = "0.4"
serde = { version = "1.0.180", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ use cbor_smol::cbor_deserialize;
use core::{convert::TryInto, marker::PhantomData, time::Duration};
use ctaphid_dispatch::app::{self as hid, Command as HidCommand, Message};
use ctaphid_dispatch::command::VendorCommand;
use heapless::Vec;
#[cfg(feature = "factory-reset")]
use littlefs2::path::PathBuf;
use serde::Deserialize;
use trussed::{interrupt::InterruptFlag, store::filestore::Filestore, syscall, types::Vec};
use trussed::{interrupt::InterruptFlag, store::filestore::Filestore, syscall};

use crate::config::{self, Config, ConfigError};

Expand Down
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ use core::{
};

use cbor_smol::{cbor_deserialize, cbor_serialize_bytes};
use heapless::Vec;
use littlefs2::{path, path::Path};
use serde::{de::DeserializeOwned, Serialize};
use strum_macros::FromRepr;
use trussed::{
store::filestore::Filestore,
try_syscall,
types::{Location, Message, Vec},
types::{Location, Message},
Client,
};

Expand Down

0 comments on commit 2abefc0

Please sign in to comment.