From f8aaf21991c2a5adcdca56f3638f321b2ccbe809 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 31 Jan 2025 13:11:41 -0500 Subject: [Rust] Make some core handles public This is a requirement if we want rust plugins to expose sane FFIs --- rust/src/function.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/src/function.rs') diff --git a/rust/src/function.rs b/rust/src/function.rs index 1c2bb21b..d126db3b 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -137,7 +137,7 @@ pub struct NativeBlock { } impl NativeBlock { - pub(crate) fn new() -> Self { + pub fn new() -> Self { NativeBlock { _priv: () } } } @@ -305,12 +305,12 @@ pub struct Function { } impl Function { - pub(crate) unsafe fn from_raw(handle: *mut BNFunction) -> Self { + pub unsafe fn from_raw(handle: *mut BNFunction) -> Self { debug_assert!(!handle.is_null()); Self { handle } } - pub(crate) unsafe fn ref_from_raw(handle: *mut BNFunction) -> Ref { + pub unsafe fn ref_from_raw(handle: *mut BNFunction) -> Ref { debug_assert!(!handle.is_null()); Ref::new(Self { handle }) } -- cgit v1.3.1