sharing\natives/mod.rs
1#[allow(dead_code)]
2mod common;
3#[cfg(any(target_os = "linux", target_os = "macos"))]
4mod linux;
5#[cfg(target_os = "windows")]
6mod windows;
7
8#[cfg(target_os = "windows")]
9#[allow(unused)]
10pub type NativeResult<T> = Result<T, anyhow::Error>;
11
12pub mod api {
13 pub use crate::natives::common::*;
14 #[cfg(any(target_os = "linux", target_os = "macos"))]
15 pub use crate::natives::linux::prelude::*;
16 #[cfg(target_os = "windows")]
17 pub use crate::natives::windows::prelude::*;
18}