badgemagic-rs/Cargo.toml
Lilian c273d4cbfc Add support for transferring badge config via Bluetooth Low Energy
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.
2024-08-01 23:04:10 +02:00

53 lines
1.4 KiB
TOML

[package]
name = "badgemagic"
version = "0.1.0"
authors = ["Martin Michaelis <code@mgjm.de>"]
edition = "2021"
description = "Badge Magic with LEDs - Library and CLI"
homepage = "https://badgemagic.fossasia.org"
repository = "https://github.com/fossasia/badgemagic-rs"
license = "MIT OR Apache-2.0"
publish = false
[[bin]]
name = "badgemagic"
required-features = ["cli"]
[[example]]
name = "hello-world"
required-features = ["embedded-graphics", "usb-hid"]
[features]
default = ["embedded-graphics", "usb-hid"]
cli = [
"embedded-graphics",
"serde",
"usb-hid",
"ble",
"dep:base64",
"dep:clap",
"dep:serde_json",
"dep:toml",
"dep:tokio",
]
embedded-graphics = ["dep:embedded-graphics"]
serde = ["dep:serde"]
usb-hid = ["dep:hidapi"]
ble = ["dep:btleplug", "dep:async-std"]
[dependencies]
anyhow = "1.0.86"
base64 = { version = "0.22.1", optional = true }
clap = { version = "4.5.8", features = ["derive"], optional = true }
embedded-graphics = { version = "0.8.1", optional = true }
hidapi = { version = "2.6.1", optional = true }
btleplug = { version = "0.11.5", optional = true }
async-std = { version = "1.12.0", optional = true }
tokio = { version = "1.38.0", features = ["rt", "macros"], optional = true }
serde = { version = "1.0.203", features = ["derive"], optional = true }
serde_json = { version = "1.0.118", optional = true }
time = "0.3.36"
toml = { version = "0.8.13", optional = true }
zerocopy = { version = "0.7.34", features = ["derive"] }