From 2af596d46641f45406b123e27d4742f4c9a75cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 13 Apr 2023 10:06:30 +0200 Subject: [PATCH] Fix compilation --- Cargo.toml | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 88d11a4..4bb1c0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ hex-literal = "0.3" interchange = "0.2.2" iso7816 = "0.1" serde = { version = "1", default-features = false, features = ["derive"] } -trussed = { version = "0.1" } +trussed = { version = "0.1", features = ["serde-extensions"] } trussed-auth = { version = "0.2" } untrusted = "0.9" vpicc = { version = "0.1.0", optional = true } @@ -62,7 +62,7 @@ default = [] strict-pin = [] std = [] vpicc = ["std", "dep:vpicc", "virt"] -virt = ["std"] +virt = ["std", "trussed/virt"] pivy-tests = [] opensc-tests = [] diff --git a/src/lib.rs b/src/lib.rs index cb7f0d1..a31b42b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -65,7 +65,7 @@ impl Default for Options { impl Options { pub fn storage(self, storage: Location) -> Self { - Self { storage } + Self { storage, ..self } } pub fn url(self, url: &'static [u8]) -> Self { Self { url, ..self }