1mod build;
2mod core;
3mod env;
4mod error;
5mod handles;
6pub(crate) mod recursion;
7mod set;
8mod storage_json;
9mod structural;
10
11pub type VmMutex<T> = parking_lot::Mutex<T>;
12
13pub use build::{DictRetain, VmDictExt};
14pub use core::{
15 intern_key, string_char_count, struct_fields_to_map, DictMap, HarnStr, StructInstanceData,
16 StructLayout, VmAsyncBuiltinFn, VmBuiltinFn, VmBuiltinRefId, VmEnumVariant, VmValue,
17};
18pub(crate) use env::Binding;
19pub use env::{closest_match, ModuleFunctionRegistry, ModuleState, VmClosure, VmEnv};
20pub use error::{
21 categorized_error, classify_error_message, error_to_category, ArgTypeMismatchError,
22 ArityExpect, ArityMismatchError, DeadlockError, ErrorCategory, VmError,
23};
24pub use handles::{
25 VmAtomicHandle, VmChannelCloseState, VmChannelHandle, VmGenerator, VmJoinHandle, VmRange,
26 VmRngHandle, VmStream, VmStreamCancel, VmSyncPermitHandle, VmTaskHandle,
27};
28pub use set::VmSet;
29pub(crate) use storage_json::vm_to_storage_json;
30pub use structural::{
31 compare_values, dedup_values, try_compare_values, value_identity_key,
32 value_structural_hash_key, values_equal, values_identical,
33};
34
35#[cfg(test)]
36mod tests;