mirror of
https://github.com/fossasia/badgemagic-rs
synced 2025-06-24 07:43:58 +00:00
Adds a new crate feature `ble` that allows for transfering badge configurations over Bluetooth Low Energy instead of USB. Expands the CLI to allow for specification of the transport protocol, either USB or BLE. The BLE library uses async rust requiring to add tokio as a async runtime to the CLI.
22 lines
407 B
Rust
22 lines
407 B
Rust
#![warn(clippy::all, clippy::pedantic)]
|
|
#![allow(clippy::missing_errors_doc)]
|
|
|
|
pub mod protocol;
|
|
|
|
#[cfg(feature = "usb-hid")]
|
|
pub mod usb_hid;
|
|
|
|
#[cfg(feature = "ble")]
|
|
pub mod ble;
|
|
|
|
#[cfg(feature = "embedded-graphics")]
|
|
pub mod util;
|
|
|
|
#[cfg(feature = "embedded-graphics")]
|
|
pub use embedded_graphics;
|
|
|
|
#[cfg(feature = "cli")]
|
|
#[doc(hidden)]
|
|
pub mod cli {
|
|
include!(concat!(env!("OUT_DIR"), "/cli.rs"));
|
|
}
|