firefly_hal/
lib.rs

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