[package] name = "raspberry-web" version = "0.1.3" authors = ["Troels Mikkelsen "] edition = "2018" license = "MIT" description = "Web server for controlling GPIO pins on the Raspberry Pi" readme = "README.md" keywords = ["raspberry", "pi", "gpio", "network"] repository = "https://github.com/bogeholm/raspberry-web" [dependencies] actix = "^0.7.9" actix-web = "^0.7.19" chrono = { version = "^0.4.6", features = ["serde"] } clap = "^2.33.0" config = "^0.9" diesel = { version = "^1.4.2", features = ["sqlite", "chrono", "r2d2"] } dotenv = "^0.13.0" env_logger = "^0.6.1" futures = "^0.1" log = { version = "^0.4.6", features = ["std", "serde"] } parking_lot = "^0.7.1" r2d2 = "^0.8.4" r2d2-diesel = "^1.0.0" serde="^1.0.89" serde_derive="^1.0.90" serde_json="^1.0.39" [dev-dependencies] diesel_migrations = "1.3.0" [target.'cfg(target_arch = "arm")'.dependencies] rppal = "^0.11.1" [lib] name = "raspberry_web" path = "src/lib.rs" doc = true [[bin]] name = "raspberry-web" path = "src/bin/main.rs" doc = false [package.metadata.deb] maintainer = "Troels Mikkelsen " copyright = "2018, Troels Mikkelsen" depends = "$auto, systemd" conf-files = [ "/usr/local/raspberry-web/configuration.toml", "/etc/systemd/system/raspberry-web.service", ] extended-description = """\ Web server for controlling the GPIO pins on Raspberry Pi.\ """ section = "network" priority = "optional" assets = [ # Binary ["target/release/raspberry-web", "/usr/local/bin/", "755"], # Database ["raspberry-web-db/raspberry-web.sqlite", "/usr/local/raspberry-web/database/raspberry-web.sqlite", "644"], # Assets ["config/configuration.toml", "/usr/local/raspberry-web/configuration.toml", "644"], ["config/raspberry-web.service", "/etc/systemd/system/", "644"], ]