Skip to main content

sim/
loaders.rs

1#[cfg(feature = "codec-binary")]
2mod binary_pack;
3mod reexport;
4mod registry;
5mod shared;
6#[cfg(feature = "codec-lisp")]
7mod source;
8#[cfg(test)]
9mod tests;
10
11#[cfg(feature = "codec-binary")]
12pub use binary_pack::{
13    BinaryLibPack, BinaryPackLoader, decode_binary_lib_pack, encode_binary_lib_pack,
14};
15#[cfg(all(feature = "dynamic-native", not(target_arch = "wasm32")))]
16pub use native::{NativeDylibLoader, encode_native_manifest_response};
17/// Native dynamic-library loader compatibility exports.
18#[cfg(all(feature = "dynamic-native", not(target_arch = "wasm32")))]
19pub mod native {
20    pub use sim_run_loaders::{
21        NativeDylibLoader, encode_native_manifest_response, validate_native_abi_header,
22    };
23}
24pub use reexport::ReexportSpec;
25pub use registry::{HostLoader, standard_loader_registry, standard_loader_registry_with_sources};
26#[cfg(feature = "wasm")]
27pub use registry::{
28    standard_loader_registry_with_wasm, standard_loader_registry_with_wasm_and_sources,
29};
30#[cfg(feature = "wasm")]
31pub use sim_run_loaders::{WasmLoader, wasm_load_capability};
32#[cfg(feature = "codec-lisp")]
33pub use source::LispSourceLoader;
34#[cfg(all(feature = "codec-lisp", feature = "codec-binary"))]
35pub use source::{
36    compile_lisp_source_pack, compile_lisp_source_text_to_pack,
37    encode_lisp_source_text_to_binary_pack, export_lisp_source_file_to_binary_pack,
38};