From 14bb0fda69c3135217baf2d829932ae1f9fa47e3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 27 Oct 2024 23:25:11 +0800 Subject: [PATCH] make usb optional --- services/cram-console/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/cram-console/Cargo.toml b/services/cram-console/Cargo.toml index d6ea250db..2965f8bb5 100644 --- a/services/cram-console/Cargo.toml +++ b/services/cram-console/Cargo.toml @@ -23,7 +23,7 @@ graphics-server = { path = "../graphics-server" } modals = { path = "../modals", features = ["cramium-soc"] } gam = { path = "../gam" } locales = { path = "../../locales" } -usb-device-xous = { path = "../usb-device-xous", default-features = false } +usb-device-xous = { path = "../usb-device-xous", default-features = false, optional = true } cramium-hal = { path = "../../libs/cramium-hal", features = ["std"] } cram-hal-service = { path = "../cram-hal-service" } ime-plugin-shell = { path = "../ime-plugin-shell" } @@ -42,4 +42,6 @@ xous-swapper = { path = "../xous-swapper" } "pl230-test" = ["xous-pl230"] "hwtest" = [] "pddb" = [] +"gam" = [] +"usb" = ["usb-device-xous"] default = []