autoagents_core/lib.rs
1// Runtime-dependent modules (not available in WASM)
2#[cfg(not(target_arch = "wasm32"))]
3pub mod actor;
4#[cfg(not(target_arch = "wasm32"))]
5pub mod environment;
6#[cfg(not(target_arch = "wasm32"))]
7pub mod runtime;
8
9// Agent module with conditional compilation
10pub mod agent;
11
12// Common modules available on all platforms
13mod channel;
14pub mod error;
15pub mod protocol;
16pub mod tool;
17pub mod utils;
18
19#[cfg(test)]
20mod tests;
21
22// Re-export ractor only for non-WASM targets
23#[cfg(not(target_arch = "wasm32"))]
24pub mod ractor {
25 pub use ractor::*;
26}