From dcaa67618882ef1b8627bc7932d0ad0df824a82e Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 20 Dec 2024 11:12:22 +0100 Subject: [PATCH] Remove default features for Trussed --- Cargo.toml | 7 +++++-- src/crypto_traits.rs | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6ba5496..4e479fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,8 @@ postcard = { version = "0.7", default-features = false, features = ["heapless"] rsa = { version = "0.9", default-features = false, features = ["sha2"]} serde = { version = "1.0.152", default-features = false, features = ["derive"] } -trussed = "0.1" +trussed = { version = "0.1", default-features = false } +trussed-core = { version = "0.1", features = ["crypto-client", "rsa2048", "rsa3072", "rsa4096"] } [dev-dependencies] hex-literal = "0.3.4" @@ -28,6 +29,7 @@ delog = { version = "0.1.6", features = ["std-log"] } test-log = "0.2.11" env_logger = "0.10.0" rand = "0.8.5" +trussed = { version = "0.1", default-features = false, features = ["certificate-client", "crypto-client"] } [features] @@ -45,7 +47,8 @@ log-warn = [] log-error = [] [patch.crates-io] -trussed = { git = "https://github.com/Nitrokey/trussed", rev = "6b9a43fbaaf34fe8d69fac0021f8130dd9a436c9" } +trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "8a9bb9d79e40c2dcf026cf611302109f776bec83" } +trussed-core = { git = "https://github.com/trussed-dev/trussed.git", rev = "8a9bb9d79e40c2dcf026cf611302109f776bec83" } [profile.dev.package.rsa] opt-level = 2 diff --git a/src/crypto_traits.rs b/src/crypto_traits.rs index ca9d93d..2e0225b 100644 --- a/src/crypto_traits.rs +++ b/src/crypto_traits.rs @@ -1,15 +1,15 @@ // Copyright (C) Nitrokey GmbH // SPDX-License-Identifier: Apache-2.0 or MIT -use trussed::{ +use trussed_core::{ api::{ reply, request::{DeserializeKey, UnsafeInjectKey}, }, - client::{ClientError, ClientResult, CryptoClient}, types::{ KeyId, KeySerialization, Location, Mechanism, SignatureSerialization, StorageAttributes, }, + ClientError, ClientResult, CryptoClient, }; use crate::{RsaImportFormat, RsaPublicParts};