From c2c1c8bc913624c55b22dbaefcd10e18276cd8d3 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 11 Feb 2025 16:24:51 +0800 Subject: [PATCH] update top level libs and cargo for all the ported-in files --- libs/ux-api/Cargo.toml | 24 +++++++++++++++++++++++- libs/ux-api/src/lib.rs | 8 ++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/libs/ux-api/Cargo.toml b/libs/ux-api/Cargo.toml index e92b3e175..2add8e571 100644 --- a/libs/ux-api/Cargo.toml +++ b/libs/ux-api/Cargo.toml @@ -5,6 +5,8 @@ edition = "2021" [dependencies] xous = "0.9.64" +xous-ipc = "0.10.4" +log = "0.4.14" num-derive = { version = "0.4.2", default-features = false } num-traits = { version = "0.2.14", default-features = false } rkyv = { version = "0.8.8", default-features = false, features = [ @@ -14,6 +16,15 @@ rkyv = { version = "0.8.8", default-features = false, features = [ zeroize = "1.8.1" enum_dispatch = "0.3.7" +# used in notifications +locales = { path = "../../locales" } +qrcode = { version = "0.12", default-features = false } + +# used in bip39 dialogue +hex = { version = "0.4.3", default-features = false, features = ["alloc"] } +sha2 = { version = "0.10.8" } +digest = "0.9.0" + [features] # various feature gates - recommended to be selective about these because # any feature included but not used will still generate the code to handle it @@ -33,8 +44,19 @@ default-widgets = [ "checkboxes", "slider", "notification", - "consoleinput", + # "consoleinput", ] +# board definition is used to define things like the size of the screen. +board-baosec = [] +board-baosor = [] +hosted-baosec = [] + +# Used by font codegen routine +hosted = [] +renode = [] +cramium-soc = [] +precursor = [] + std = ["rkyv"] default = ["std", "default-widgets"] diff --git a/libs/ux-api/src/lib.rs b/libs/ux-api/src/lib.rs index c935c5d65..d04146d7d 100644 --- a/libs/ux-api/src/lib.rs +++ b/libs/ux-api/src/lib.rs @@ -1,4 +1,12 @@ #![cfg_attr(not(feature = "std"), no_std)] +mod blitstr2; pub mod minigfx; pub mod widgets; +mod wordwrap; +#[macro_use] +mod style_macros; +mod fontmap; +pub mod platform; + +pub const SYSTEM_STYLE: crate::minigfx::GlyphStyle = crate::minigfx::GlyphStyle::Tall;