Skip to main content

phlow_runtime/
lib.rs

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