tessera-mobile 0.0.0

Rust on mobile made easy.
Documentation
#![allow(unsafe_code)]

#[cfg(target_os = "macos")]
mod macos;

#[cfg(target_os = "linux")]
pub use self::linux::*;

#[cfg(target_os = "macos")]
pub use self::macos::*;

#[cfg(windows)]
pub use self::windows::*;

#[cfg(target_os = "linux")]
mod linux;

#[cfg(windows)]
mod 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 ❤️"
);

// TODO: we should probably expose common functionality throughout `os` in a
// less ad-hoc way... since it's really easy to accidentally break things.
#[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()
    }
}