Export locked_read and locked_write under internals.
This commit is contained in:
@@ -509,7 +509,8 @@ pub fn shared_take<T>(value: Shared<T>) -> T {
|
||||
shared_try_take(value).ok().expect("not shared")
|
||||
}
|
||||
|
||||
/// Lock a [`Locked`] resource for mutable access.
|
||||
/// _(internals)_ Lock a [`Locked`] resource for mutable access.
|
||||
/// Exported under the `internals` feature only.
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
#[allow(dead_code)]
|
||||
@@ -521,7 +522,8 @@ pub fn locked_read<T>(value: &Locked<T>) -> LockGuard<T> {
|
||||
return value.read().unwrap();
|
||||
}
|
||||
|
||||
/// Lock a [`Locked`] resource for mutable access.
|
||||
/// _(internals)_ Lock a [`Locked`] resource for mutable access.
|
||||
/// Exported under the `internals` feature only.
|
||||
#[inline(always)]
|
||||
#[must_use]
|
||||
#[allow(dead_code)]
|
||||
|
@@ -201,8 +201,6 @@ pub use api::{eval::eval, events::VarDefInfo, run::run};
|
||||
pub use ast::{FnAccess, AST};
|
||||
pub use engine::{Engine, OP_CONTAINS, OP_EQUALS};
|
||||
pub use eval::EvalContext;
|
||||
#[cfg(feature = "internals")]
|
||||
pub use func::native::{locked_read, locked_write};
|
||||
pub use func::{NativeCallContext, RegisterNativeFunction};
|
||||
pub use module::{FnNamespace, Module};
|
||||
pub use tokenizer::Position;
|
||||
@@ -342,7 +340,7 @@ pub use eval::{Caches, FnResolutionCache, FnResolutionCacheEntry, GlobalRuntimeS
|
||||
|
||||
#[cfg(feature = "internals")]
|
||||
#[allow(deprecated)]
|
||||
pub use func::NativeCallContextStore;
|
||||
pub use func::{locked_read, locked_write, NativeCallContextStore};
|
||||
|
||||
#[cfg(feature = "internals")]
|
||||
#[cfg(feature = "metadata")]
|
||||
|
Reference in New Issue
Block a user