diff --git a/Cargo.toml b/Cargo.toml index a9124f0..9cde74c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ ctap-types = "0.1.0" delog = "0.1.0" heapless = "0.7" interchange = "0.2.0" -littlefs2 = "0.3.1" serde = { version = "1.0", default-features = false } serde_cbor = { version = "0.11.0", default-features = false } serde-indexed = "0.1.0" @@ -44,3 +43,6 @@ rand = "0.8.4" [package.metadata.docs.rs] features = ["dispatch"] + +[patch.crates-io] +trussed = { git = "https://github.com/trussed-dev/trussed", rev = "55ea391367fce4bf5093ff2d3c79041d7aef0485" } diff --git a/src/ctap2.rs b/src/ctap2.rs index ca857a1..789ca04 100644 --- a/src/ctap2.rs +++ b/src/ctap2.rs @@ -7,12 +7,10 @@ use ctap_types::{ sizes, Error, }; -use littlefs2::path::Path; - use trussed::{ syscall, try_syscall, types::{ - KeyId, KeySerialization, Location, Mechanism, MediumData, Message, PathBuf, + KeyId, KeySerialization, Location, Mechanism, MediumData, Message, Path, PathBuf, SignatureSerialization, }, }; diff --git a/src/ctap2/credential_management.rs b/src/ctap2/credential_management.rs index d8bc26f..ed6f75e 100644 --- a/src/ctap2/credential_management.rs +++ b/src/ctap2/credential_management.rs @@ -4,7 +4,7 @@ use core::convert::TryFrom; use trussed::{ syscall, - types::{DirEntry, Location}, + types::{DirEntry, Location, Path, PathBuf}, }; use ctap_types::{ @@ -15,8 +15,6 @@ use ctap_types::{ Error, }; -use littlefs2::path::{Path, PathBuf}; - use crate::{ credential::Credential, state::{CredentialManagementEnumerateCredentials, CredentialManagementEnumerateRps}, diff --git a/src/state.rs b/src/state.rs index 69d608f..20eaeef 100644 --- a/src/state.rs +++ b/src/state.rs @@ -12,12 +12,11 @@ use ctap_types::{ }; use trussed::{ client, syscall, try_syscall, - types::{self, KeyId, Location, Mechanism}, + types::{self, KeyId, Location, Mechanism, PathBuf}, Client as TrussedClient, }; use heapless::binary_heap::{BinaryHeap, Max}; -use littlefs2::path::PathBuf; use crate::{cbor_serialize_message, credential::Credential, Result};