pico_engine_shell/
lib.rs

1#![cfg_attr(not(target_arch = "wasm32"), no_std)]
2
3#[cfg(target_os = "none")]
4pub mod pico;
5
6#[cfg(target_arch = "wasm32")]
7pub mod web;
8
9// Re-export common types
10pub use pico_engine_core::{Game, Engine};
11pub use pico_engine_hardware::Hardware;
12
13// Platform-agnostic entry point (if possible, but signatures differ)
14// Pico: run<G>() -> !
15// Web: run<G>(canvas_id: &str)
16
17#[cfg(target_os = "none")]
18pub use pico::run as run_pico;
19
20#[cfg(target_os = "none")]
21pub use pico::entry;
22
23#[cfg(target_arch = "wasm32")]
24pub use web::run as run_web;