PlantCtrl/rust/Cargo.toml

96 lines
2.8 KiB
TOML
Raw Normal View History

2023-11-20 00:05:47 +01:00
[package]
name = "plant-ctrl2"
version = "0.1.0"
authors = ["Empire Phoenix"]
edition = "2021"
resolver = "2"
rust-version = "1.71"
2024-04-21 20:17:08 +02:00
[profile.dev]
2023-11-23 22:50:17 +01:00
# Explicitly disable LTO which the Xtensa codegen backend has issues
2024-11-23 00:39:36 +01:00
lto = true
2023-11-23 22:50:17 +01:00
strip = false
2024-04-22 13:03:42 +02:00
debug = true
2023-11-27 00:05:09 +01:00
overflow-checks = true
2024-04-21 20:17:08 +02:00
panic = "abort"
2023-11-27 00:05:09 +01:00
incremental = true
2023-11-20 00:05:47 +01:00
opt-level = "s"
2024-04-21 20:17:08 +02:00
[profile.dev.build-override]
opt-level = 1
2023-11-27 00:05:09 +01:00
incremental = true
2023-11-20 00:05:47 +01:00
2023-11-23 22:50:17 +01:00
[package.metadata.cargo_runner]
# The string `$TARGET_FILE` will be replaced with the path from cargo.
command = [
"cargo",
"espflash",
"save-image",
"--chip",
2024-04-21 20:17:08 +02:00
"esp32c6",
2023-11-23 22:50:17 +01:00
"image.bin"
]
[package.metadata.espflash]
2023-11-29 18:27:23 +01:00
partition_table = "partitions.csv"
2023-11-23 22:50:17 +01:00
2023-11-20 00:05:47 +01:00
[features]
default = ["std", "embassy", "esp-idf-svc/native"]
pio = ["esp-idf-svc/pio"]
std = ["alloc", "esp-idf-svc/binstart", "esp-idf-svc/std"]
alloc = ["esp-idf-svc/alloc"]
nightly = ["esp-idf-svc/nightly"]
experimental = ["esp-idf-svc/experimental"]
embassy = ["esp-idf-svc/embassy-sync", "esp-idf-svc/critical-section", "esp-idf-svc/embassy-time-driver"]
[dependencies]
2024-10-23 18:17:18 +02:00
#ESP stuff
embedded-svc = { version = "0.28.0", features = ["experimental"] }
esp-idf-hal = "0.44.1"
esp-idf-sys = { version = "0.35.0", features = ["binstart", "native"] }
esp-idf-svc = { version = "0.49.1", default-features = false }
2024-02-15 23:00:05 +01:00
embedded-hal = "1.0.0"
2024-10-23 18:17:18 +02:00
heapless = { version = "0.8", features = ["serde"] }
embedded-hal-bus = { version = "0.2.0", features = ["std"] }
#Hardware additional driver
ds18b20 = "0.1.1"
bq34z100 = { version = "0.3.0", features = ["flashstream"] }
2023-11-21 01:05:12 +01:00
one-wire-bus = "0.1.1"
2024-10-23 18:17:18 +02:00
ds323x = "0.5.1"
#pure code dependencies
log = { version = "0.4", default-features = false }
once_cell = "1.19.0"
2023-11-23 22:50:17 +01:00
anyhow = { version = "1.0.75", features = ["std", "backtrace"] }
2024-10-23 18:17:18 +02:00
average = { version = "0.14.1" , features = ["std"] }
bit_field = "0.10.2"
2024-02-15 23:00:05 +01:00
strum = { version = "0.26.1", features = ["derive"] }
2024-01-17 21:25:01 +01:00
measurements = "0.11.0"
2024-10-23 18:17:18 +02:00
schemars = "0.8.16"
#json
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"
#timezone
chrono = { version = "0.4.23", default-features = false , features = ["iana-time-zone" , "alloc"] }
chrono-tz = {version="0.8.0", default-features = false , features = [ "filter-by-regex" ]}
eeprom24x = "0.7.2"
2024-11-23 00:39:36 +01:00
url = "2.5.3"
2024-10-23 18:17:18 +02:00
2023-11-20 00:05:47 +01:00
2024-04-26 18:52:53 +02:00
[patch.crates-io]
2024-05-01 18:06:20 +02:00
#esp-idf-hal = { git = "https://github.com/esp-rs/esp-idf-hal.git" }
2024-10-23 18:17:18 +02:00
#esp-idf-hal = { git = "https://github.com/empirephoenix/esp-idf-hal.git" }
2024-04-27 19:58:56 +02:00
#esp-idf-sys = { git = "https://github.com/empirephoenix/esp-idf-sys.git" }
#esp-idf-sys = { git = "https://github.com/esp-rs/esp-idf-sys.git" }
#esp-idf-svc = { git = "https://github.com/esp-rs/esp-idf-svc.git" }
2024-10-23 18:17:18 +02:00
ds323x = { git = "https://github.com/empirephoenix/ds323x-rs.git" }
2024-11-20 01:14:39 +01:00
#bq34z100 = { path = "../../bq34z100_rust" }
2024-04-26 18:52:53 +02:00
2023-11-20 00:05:47 +01:00
[build-dependencies]
2024-10-23 18:17:18 +02:00
embuild = "0.32.0"
vergen = { version = "8.2.6", features = ["build", "git", "gitcl"] }