#![allow(unexpected_cfgs)]
#[cfg(feature = "build")]
pub mod app_config;
#[cfg(feature = "uniffi")]
pub use uniffi::*;
#[cfg(feature = "uniffi")]
#[macro_export]
macro_rules! uniffi_setup {
() => {
extern crate mopro_ffi as uniffi;
uniffi::setup_scaffolding!();
};
}
#[cfg(not(feature = "uniffi"))]
#[macro_export]
macro_rules! uniffi_setup {
() => {
};
}
#[cfg(feature = "flutter")]
pub use flutter_rust_bridge::*;
#[cfg(feature = "flutter")]
#[macro_export]
macro_rules! flutter_setup {
() => {
extern crate mopro_ffi as flutter_rust_bridge;
pub fn init_app() {
flutter_rust_bridge::setup_default_user_utils();
}
};
}
#[cfg(not(feature = "flutter"))]
#[macro_export]
macro_rules! flutter_setup {
() => {};
}
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub use console_error_panic_hook;
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub use getrandom;
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub use serde_wasm_bindgen;
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub use wasm_bindgen::*;
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub use wasm_bindgen_console_logger;
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub use wasm_bindgen_futures;
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
pub use wasm_bindgen_rayon::*;
#[macro_export]
macro_rules! wasm_setup {
() => {
extern crate mopro_ffi as wasm_bindgen;
extern crate mopro_ffi as wasm_bindgen_rayon;
use wasm_bindgen::prelude::*;
use wasm_bindgen_rayon::init_thread_pool;
};
}
#[macro_export]
macro_rules! app {
() => {
mopro_ffi::uniffi_setup!();
mopro_ffi::flutter_setup!();
#[cfg(all(feature = "wasm", target_arch = "wasm32"))]
mopro_ffi::wasm_setup!();
};
}