[package] name = "tesla-charge-controller" version = "1.5.0" edition = "2021" license = "MITNFA" description = "Controls Tesla charge rate based on solar charge data" authors = ["Alex Janka"] [package.metadata.deb] maintainer-scripts = "debian/" systemd-units = { enable = false } depends = "" assets = [["target/release/tesla-charge-controller", "usr/bin/", "755"]] [dependencies] tesla-common = { git = "https://git.alexjanka.com/alex/tesla-common" } clap = { version = "4.5.23", features = ["derive"] } ron = "0.8.1" serde = { version = "1.0.216", features = ["derive"] } serde_json = "1.0.134" tokio = { version = "1.42.0", features = ["full"] } thiserror = "2.0.9" rocket = { version = "0.5.1", features = ["json"] } include_dir = "0.7.4" chrono = "0.4.39" prometheus = "0.13.4" env_logger = "0.11.6" log = "0.4.22" serialport = "4.6.1" tokio-modbus = "0.16.1" tokio-serial = "5.4.4" if_chain = "1.0.2" notify-debouncer-mini = { version = "0.5.0", default-features = false } lazy_static = "1.5.0" rand = "0.8.5" reqwest = { version = "0.12.9", default-features = false, features = [ "rustls-tls", ] } # [patch."https://git.alexjanka.com/alex/tesla-common"] # tesla-common = { path = "../tesla-common" } [lints.clippy] pedantic = "warn" module-name-repetitions = { level = "allow", priority = 1 } struct-excessive-bools = { level = "allow", priority = 1 } too-many-lines = { level = "allow", priority = 1 } default-trait-access = { level = "allow", priority = 1 } cast-precision-loss = { level = "allow", priority = 1 } cast-possible-truncation = { level = "allow", priority = 1 }