From 0d41ea78535a91e1173f427632080f3bf30896e3 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Thu, 21 May 2026 11:58:41 -0400 Subject: [PATCH] Add `HubrisArchive::load_from_path` For library functions this is a nice shortcut if we don't need to directly manipulate the `RawHubrisArchive` --- humility-core/src/hubris.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/humility-core/src/hubris.rs b/humility-core/src/hubris.rs index effb7eb79..773deafa1 100644 --- a/humility-core/src/hubris.rs +++ b/humility-core/src/hubris.rs @@ -1336,6 +1336,13 @@ impl HubrisArchive { inlined } + pub fn load_from_path + std::fmt::Debug + Copy>( + path: P, + ) -> Result { + let hubris = RawHubrisArchive::load(path)?; + Self::load(hubris, None) + } + pub fn load( hubris: RawHubrisArchive, task_dump: Option,