[package]
name = "base-station"
version = "0.1.0"
authors = ["Mathias Gottschlag <mgottschlag@gmail.com>"]
edition = "2018"


[features]
default = []
rpi4 = [ "sysfs_gpio", "gpio-cdev" ]
nanopineo = [ "sysfs_gpio", "gpio-cdev" ]
nrf24l01-stick = [ "nrf24l01-stick-driver" ]

[dependencies]
linux-embedded-hal = "0.3"
embedded-nrf24l01 = { git = "https://github.com/mgottschlag/embedded-nrf24l01", branch = "wip" }
embedded-hal = "0.2.3"
mqtt-protocol = "0.11"
env_logger = "0.9"
log = "0.4.14"
thiserror = "1.0"
protocol = { path = "../../common/rust-protocol" }
rand = "0.8.4"
tokio = { version = "1.10.1", features = [ "full" ] }
sysfs_gpio = { version = "0.5.4", features = [ "use_tokio" ], optional = true }
futures = "0.3.16"
futures-util = "0.3.16"
gpio-cdev = { version = "0.4", features = [ "async-tokio" ], optional = true }
chrono = "0.4.19"
nrf24l01-stick-driver = { git = "https://github.com/mgottschlag/nrf24l01-stick", optional = true }
influxdb = { version = "0.4", features = [ "derive" ] }
serde = { version = "1.0.129", features = ["derive"] }
toml = "0.5.8"
structopt = "0.3"

[patch.crates-io]
sysfs_gpio = { git = "https://github.com/mgottschlag/rust-sysfs-gpio", branch = "new-futures" }
