1#![cfg_attr(target_os = "none", no_std)]
3#![cfg_attr(target_os = "none", feature(allocator_api))]
5#![allow(clippy::new_without_default)]
6
7extern crate alloc;
8
9mod errors;
10mod shared;
11
12#[cfg_attr(target_family = "wasm", path = "web.rs")]
13#[cfg_attr(not(target_os = "none"), path = "hosted.rs")]
14#[cfg_attr(target_os = "none", path = "embedded.rs")]
15mod device;
16
17#[cfg(not(target_os = "none"))]
18#[cfg_attr(target_os = "android", path = "gamepad_android.rs")]
19#[cfg_attr(not(target_os = "android"), path = "gamepad.rs")]
20mod gamepad;
21
22#[cfg(not(target_os = "none"))]
23pub use device::DeviceConfig;
24
25pub use device::{Addr, DeviceImpl, DirImpl, NetworkImpl, SerialImpl};
26pub use errors::*;
27pub use shared::*;