From 7bde42f4a831025a29ca8ad2e79d252dd8a0bc10 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Tue, 21 Feb 2023 01:20:50 +0100 Subject: [PATCH] stub: enable logger in uefi-services --- rust/stub/Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/stub/Cargo.toml b/rust/stub/Cargo.toml index 16d9d3a..d0b2d25 100644 --- a/rust/stub/Cargo.toml +++ b/rust/stub/Cargo.toml @@ -6,10 +6,12 @@ publish = false [dependencies] uefi = { version = "0.19.1", default-features = false, features = [ "alloc", "global_allocator", "unstable" ] } -uefi-services = { version = "0.16.0", default-features = false, features = [ "panic_handler" ] } -log = "0.4.17" +uefi-services = { version = "0.16.0", default-features = false, features = [ "panic_handler", "logger" ] } goblin = { version = "0.6.0", default-features = false, features = [ "pe64", "alloc" ]} +# Even in debug builds, we don't enable the debug logs, because they generate a lot of spam from goblin. +log = { version = "0.4.17", default-features = false, features = [ "max_level_info", "release_max_level_warn" ]} + # Use software implementation because the UEFI target seems to need it. sha2 = { version = "0.10.6", default-features = false, features = ["force-soft"] }