From 79b4a781f767b11dc6e95afd7f7bef3868940096 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 18 Jun 2024 00:54:27 +0800 Subject: [PATCH] actually fix dependency issue for cargo doc --- services/usb-device-xous/Cargo.toml | 4 +++- services/usb-device-xous/src/lib.rs | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/usb-device-xous/Cargo.toml b/services/usb-device-xous/Cargo.toml index 4935247a9..80623aab7 100644 --- a/services/usb-device-xous/Cargo.toml +++ b/services/usb-device-xous/Cargo.toml @@ -74,4 +74,6 @@ mass-storage = ["usbd_scsi", "usbd_mass_storage"] auto-trng = [] mjolnir = [ ] # the big hammer for debugging Spinal USB issues. A raw memory dump of config and descriptor space. Use with care. -default = [] + +# cramium targets must specify no default features; this is necessary for cargo doc to work. +default = ["trng"] diff --git a/services/usb-device-xous/src/lib.rs b/services/usb-device-xous/src/lib.rs index 5735c9ef0..c96af2a90 100644 --- a/services/usb-device-xous/src/lib.rs +++ b/services/usb-device-xous/src/lib.rs @@ -7,7 +7,6 @@ pub mod api; pub use api::*; use num_traits::*; use packed_struct::PackedStruct; -#[cfg(feature = "cramium-soc")] use trng::api::TrngTestMode; pub use usb_device::device::UsbDeviceState; use xous::{send_message, Message, CID};