From c80dac7253c7dcd3eda107bd59de86234a47bea9 Mon Sep 17 00:00:00 2001 From: Bobbin Threadbare Date: Mon, 12 Aug 2024 10:55:02 -0700 Subject: [PATCH] feat: expose Kernel publicly from the KernelLibrary --- assembly/src/library/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assembly/src/library/mod.rs b/assembly/src/library/mod.rs index 283f89044..8ae3415bd 100644 --- a/assembly/src/library/mod.rs +++ b/assembly/src/library/mod.rs @@ -371,6 +371,11 @@ impl AsRef for KernelLibrary { } impl KernelLibrary { + /// Returns the [Kernel] for this kernel library. + pub fn kernel(&self) -> &Kernel { + &self.kernel + } + /// Returns the inner [`MastForest`]. pub fn mast_forest(&self) -> &MastForest { self.library.mast_forest()