Skip to content

Commit

Permalink
Remove default features for Trussed
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Dec 20, 2024
1 parent 655eca3 commit dcaa676
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/crypto_traits.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down

0 comments on commit dcaa676

Please sign in to comment.