use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct ShareData {
pub title: String,
pub text: String,
pub url: String,
}
pub fn request_quit(ctx: &egui::Context) {
ctx.send_viewport_cmd(egui::ViewportCommand::Close);
}
#[cfg(target_os = "android")]
#[cfg(feature = "platform")]
pub mod android;
pub mod android_back;
#[cfg(target_arch = "wasm32")]
#[cfg(feature = "platform")]
pub mod web;
#[cfg(not(any(target_arch = "wasm32", target_os = "android")))]
#[cfg(feature = "platform")]
pub mod desktop;
#[cfg(all(
target_arch = "wasm32",
not(target_os = "android"),
not(feature = "web")
))]
#[cfg(feature = "platform")]
pub(crate) mod stub;
#[cfg(target_os = "android")]
#[cfg(feature = "platform")]
pub(crate) use android as backend;
#[cfg(all(target_arch = "wasm32", feature = "web"))]
#[cfg(feature = "platform")]
pub(crate) use web as backend;
#[cfg(not(any(target_arch = "wasm32", target_os = "android")))]
#[cfg(feature = "platform")]
pub(crate) use desktop as backend;
#[cfg(all(
target_arch = "wasm32",
not(target_os = "android"),
not(feature = "web")
))]
#[cfg(feature = "platform")]
pub(crate) use stub as backend;