rainmaker_components/lib.rs
1#![feature(map_try_insert)] // used in http_linux.rs
2#![feature(trait_alias)] // http_linux.rs
3
4pub mod ble;
5pub mod error;
6pub mod http;
7pub mod mqtt;
8pub mod persistent_storage;
9pub mod protocomm;
10pub mod wifi;
11pub mod wifi_prov;
12
13pub(crate) mod proto;
14pub(crate) mod utils;
15
16fn hello(name: &str) {
17 log::info!("hello from {}", name);
18}
19
20pub fn say_hello() {
21 #[cfg(target_os = "espidf")]
22 hello("espidf");
23
24 #[cfg(target_os = "linux")]
25 hello("linux");
26}