#![allow(unsafe_code)]
#[cfg(target_os = "macos")]
mod macos;
#[cfg(target_os = "macos")]
pub use self::macos::*;
#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "linux")]
pub use self::linux::*;
#[cfg(windows)]
mod windows;
#[cfg(windows)]
pub use self::windows::*;
#[cfg(not(any(target_os = "macos", target_os = "linux", windows)))]
compile_error!("Host platform not yet supported by cargo-mobile2! We'd love if you made a PR to add support for this platform ❤️");
#[derive(Debug)]
pub struct Info {
pub name: String,
pub version: String,
}
impl Info {
pub fn check() -> Result<Self, impl std::error::Error> {
self::info::check()
}
}