Update trussed for heapless 0.9

This commit is contained in:
Sosthène Guédon
2026-03-23 14:06:59 +01:00
committed by Robin Krahl
parent 7e82a4fb11
commit 8faf830ea7
10 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -58,7 +58,7 @@ trussed-fs-info = { version = "0.2.0", optional = true }
[dev-dependencies]
hex-literal = "0.4.0"
hmac = "0.12.0"
trussed = { version = "0.1.0", default-features = false, features = ["aes256-cbc", "crypto-client", "filesystem-client", "hmac-sha256", "virt", "x255"] }
trussed = { version = "0.1.0", default-features = false, features = ["aes256-cbc", "hmac-sha256", "virt", "x255"] }
[features]
default = []
@@ -83,8 +83,8 @@ log-warn = []
log-error = []
[patch.crates-io]
trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "ac106d63ab5e19021b0e37f0efb4313f8168a110" }
trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "43ed1efcb19dc9c8bee45d4a1d3ad7dee2bba5ae" }
trussed-core = { git = "https://github.com/trussed-dev/trussed.git", rev = "43ed1efcb19dc9c8bee45d4a1d3ad7dee2bba5ae"}
trussed-chunked = { path = "extensions/chunked" }
trussed-hkdf = { path = "extensions/hkdf" }
trussed-hpke = { path = "extensions/hpke" }
+1 -1
View File
@@ -13,4 +13,4 @@ license.workspace = true
[dependencies]
serde.workspace = true
serde-byte-array.workspace = true
trussed-core = { workspace = true, features = ["filesystem-client"] }
trussed-core = { workspace = true, features = ["filesystem-client"]}
+3 -3
View File
@@ -10,9 +10,9 @@ pub mod utils;
use serde::{Deserialize, Serialize};
use serde_byte_array::ByteArray;
use trussed_core::{
client::FilesystemClient,
serde_extensions::{Extension, ExtensionClient, ExtensionResult},
types::{KeyId, Location, Message, PathBuf, UserAttribute},
FilesystemClient,
};
pub const CHACHA8_STREAM_NONCE_LEN: usize = 8;
@@ -57,8 +57,8 @@ pub mod request {
use super::*;
use serde::{Deserialize, Serialize};
use serde_byte_array::ByteArray;
use trussed_core::error::Error;
use trussed_core::types::{KeyId, Location, Message, PathBuf, UserAttribute};
use trussed_core::Error;
#[derive(Debug, PartialEq, Eq, Deserialize, Serialize)]
pub struct ReadChunk {}
@@ -263,8 +263,8 @@ pub mod request {
pub mod reply {
use super::*;
use serde::{Deserialize, Serialize};
use trussed_core::error::Error;
use trussed_core::types::Message;
use trussed_core::Error;
#[derive(Debug, PartialEq, Eq, Deserialize, Serialize)]
pub struct ReadChunk {
+1 -1
View File
@@ -3,9 +3,9 @@
use serde_byte_array::ByteArray;
use trussed_core::{
error::Error,
syscall, try_syscall,
types::{KeyId, Location, Message, PathBuf, UserAttribute},
Error,
};
use crate::{ChunkedClient, CHACHA8_STREAM_NONCE_LEN};
+1 -1
View File
@@ -7,9 +7,9 @@
use serde::{Deserialize, Serialize};
use trussed_core::{
error::Error,
serde_extensions::{Extension, ExtensionClient, ExtensionResult},
types::Location,
Error,
};
pub struct FsInfoExtension;
+1 -1
View File
@@ -8,9 +8,9 @@
use serde::{Deserialize, Serialize};
use trussed_core::{
config::MAX_MEDIUM_DATA_LENGTH,
error::Error,
serde_extensions::{Extension, ExtensionClient, ExtensionResult},
types::{Bytes, KeyId, Location, Message},
Error,
};
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
+1 -1
View File
@@ -11,9 +11,9 @@
use serde::{Deserialize, Serialize};
use serde_byte_array::ByteArray;
use trussed_core::error::Error;
use trussed_core::serde_extensions::{Extension, ExtensionClient, ExtensionResult};
use trussed_core::types::{KeyId, Location, Message, PathBuf, ShortData};
use trussed_core::Error;
#[derive(Deserialize, Serialize)]
pub enum HpkeRequest {
+1 -1
View File
@@ -8,8 +8,8 @@
use littlefs2_core::{path, Path, PathBuf};
use serde::{Deserialize, Serialize};
use trussed_core::{
error::Error,
serde_extensions::{Extension, ExtensionClient, ExtensionResult},
Error,
};
pub struct ManageExtension;
+1 -1
View File
@@ -12,4 +12,4 @@ license.workspace = true
[dependencies]
serde.workspace = true
trussed-core = { workspace = true, features = ["filesystem-client"] }
trussed-core.workspace = true
+3 -3
View File
@@ -7,9 +7,9 @@
use serde::{Deserialize, Serialize};
use trussed_core::{
client::ClientError,
serde_extensions::{Extension, ExtensionClient, ExtensionResult},
types::{Bytes, KeyId, Location, Mechanism, PathBuf},
ClientError,
};
#[derive(Debug, Default)]
@@ -25,8 +25,8 @@ pub enum WrapKeyToFileRequest {
pub mod request {
use super::*;
use serde::{Deserialize, Serialize};
use trussed_core::error::Error;
use trussed_core::types::{KeyId, Location, Mechanism, Message, PathBuf};
use trussed_core::Error;
#[derive(Debug, Deserialize, Serialize)]
pub struct WrapKeyToFile {
@@ -90,7 +90,7 @@ pub enum WrapKeyToFileReply {
pub mod reply {
use serde::{Deserialize, Serialize};
use trussed_core::{types::KeyId, Error};
use trussed_core::{error::Error, types::KeyId};
use super::*;