#[cfg(target_os = "macos")] use std::path::PathBuf; pub mod general; pub mod plugin; pub mod terminal; pub mod units; pub use hypersdk; pub mod prelude { pub use crate::general::*; pub use crate::plugin::*; pub use crate::server_path; pub use crate::terminal::*; pub use crate::units::*; pub use hypersdk; } pub fn server_path() -> PathBuf { PathBuf::from("/tmp/pulse-engine.sock") } pub fn map_postcard_err(res: postcard::Result) -> tokio::io::Result { res.map_err(|e| tokio::io::Error::new(std::io::ErrorKind::Other, e)) }