From f6b4b731cb386735f2b803217f85e6ffa9a979c0 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Tue, 24 Sep 2024 22:57:49 -0700 Subject: [PATCH 1/2] Expose PanicMessage Signed-off-by: Nick Spinale --- crates/sel4-panicking/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/sel4-panicking/src/lib.rs b/crates/sel4-panicking/src/lib.rs index 33a1563d1..3ffb6a055 100644 --- a/crates/sel4-panicking/src/lib.rs +++ b/crates/sel4-panicking/src/lib.rs @@ -22,7 +22,7 @@ use core::panic::Location; use core::panic::{PanicInfo, UnwindSafe}; #[cfg(panic_info_message_stable)] -use core::panic::PanicMessage; +pub use core::panic::PanicMessage; use cfg_if::cfg_if; @@ -42,7 +42,7 @@ pub use hook::{set_hook, PanicHook}; pub use payload::{Payload, SmallPayload, UpcastIntoPayload, SMALL_PAYLOAD_MAX_SIZE}; #[cfg(not(panic_info_message_stable))] -type PanicMessage<'a> = &'a fmt::Arguments<'a>; +pub type PanicMessage<'a> = &'a fmt::Arguments<'a>; pub struct ExternalPanicInfo<'a> { payload: Payload, From ff5ff38921def7c0f5be66da5a90903e980bee73 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Tue, 24 Sep 2024 23:11:04 -0700 Subject: [PATCH 2/2] Don't hide docs for DEFAULT_STACK_SIZE Signed-off-by: Nick Spinale --- crates/sel4-microkit/src/lib.rs | 1 - crates/sel4-root-task/src/lib.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/crates/sel4-microkit/src/lib.rs b/crates/sel4-microkit/src/lib.rs index 64f11d91a..9e0831030 100644 --- a/crates/sel4-microkit/src/lib.rs +++ b/crates/sel4-microkit/src/lib.rs @@ -82,7 +82,6 @@ macro_rules! declare_protection_domain { }; } -#[doc(hidden)] pub const DEFAULT_STACK_SIZE: usize = 1024 * if cfg!(panic = "unwind") && cfg!(debug_assertions) { 128 diff --git a/crates/sel4-root-task/src/lib.rs b/crates/sel4-root-task/src/lib.rs index 3c08592dc..8a072dd89 100644 --- a/crates/sel4-root-task/src/lib.rs +++ b/crates/sel4-root-task/src/lib.rs @@ -55,7 +55,6 @@ macro_rules! declare_root_task { }; } -#[doc(hidden)] pub const DEFAULT_STACK_SIZE: usize = 1024 * if cfg!(panic = "unwind") && cfg!(debug_assertions) { 128