2025-04-22 01:46:51 +08:00

23 lines
616 B
Rust

// 这里的常量将在编译时由build.rs设置
// 通过rustc-cfg设置的cfg特性可以在代码中使用
// 将PLATFORM_SUPPORTS_GPIO基于实际检测到的GPIO支持来设置
#[cfg(feature = "gpio")]
pub const PLATFORM_SUPPORTS_GPIO: bool = true;
#[cfg(not(feature = "gpio"))]
pub const PLATFORM_SUPPORTS_GPIO: bool = false;
// 将所有模块重新导出,使它们对例子可见
pub mod camera;
pub mod config;
pub mod utils;
pub mod gps;
pub mod sensors;
pub mod detection;
pub mod streaming;
pub mod storage;
pub mod communication;
pub mod monitoring;
pub mod overlay;
pub mod hooks;
pub mod events;