Skip to main content

phlow_runtime/
lib.rs

1pub mod analyzer;
2pub mod debug_server;
3pub mod inline_module;
4pub mod loader;
5pub mod memory;
6pub mod package;
7pub mod preprocessor;
8pub mod runtime;
9pub mod scripts;
10pub mod settings;
11pub mod test_runner;
12
13mod runtime_api;
14
15pub use loader::Loader;
16pub use inline_module::{
17    InlineModules, PhlowModule, PhlowModuleHandler, PhlowModuleRequest, PhlowModuleSchema,
18};
19pub use package::Package;
20pub use runtime::{Runtime, RuntimeError};
21pub use runtime_api::{PhlowBuilder, PhlowRuntime, PhlowRuntimeError};
22pub use settings::{PrintOutput, Settings};
23
24#[cfg(target_os = "macos")]
25pub const MODULE_EXTENSION: &str = "dylib";
26#[cfg(target_os = "linux")]
27pub const MODULE_EXTENSION: &str = "so";
28#[cfg(target_os = "windows")]
29pub const MODULE_EXTENSION: &str = "dll";
30
31#[cfg(target_os = "macos")]
32pub const RUNTIME_ARCH: &str = "darwin";
33#[cfg(all(target_os = "linux", target_arch = "aarch64"))]
34pub const RUNTIME_ARCH: &str = "linux-aarch64";
35#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
36pub const RUNTIME_ARCH: &str = "linux-amd64";