This repository was archived by the owner on Apr 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
35 lines (33 loc) · 1.34 KB
/
Cargo.toml
File metadata and controls
35 lines (33 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[package]
name = "terralux-backend"
edition = "2024"
[features]
# mock connection to smart plug
# use like `cargo run -F mock_plug`
mock_plug = []
# accelerate flow of time for presentation
demo_mode = []
[dependencies]
axum = { version = "0.8.4", features = ["macros"] } # webserver (with debug_handler macro)
tower-http = { version = "0.6.6", features = ["cors"] } # for handling cors
cfg-if = "1.0.1" # better `if cfg!(...)`
dirs-next = "2.0.0" # platform-specific standard paths
tokio = { version = "1.45.1", features = ["rt-multi-thread", "macros", "fs"] } # async runtime
# make http requests
# native-tls-alpn feature is somehow necessary to get useful responses
# from sunrisesunset.io when running inside a docker container
reqwest = { version = "0.12.20", features = ["json", "native-tls-alpn"] }
# logging
log = "0.4.27" # api
env_logger = "0.11.8" # implementation
# time stuff
chrono = "0.4.41" # get current time
chrono-tz = { version = "0.10.3", features = ["serde"] } # deal with timezones
iana-time-zone = "0.1.63" # get local timezone
# (de)serialize to/from json
serde = "1.0.219"
serde_json = "1.0.140"
serde-big-array = "0.5.1" # for arrays with >32 elements
# swagger ui / openapi documentation support for axum
utoipa = { version = "5.4.0", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "9.0.2", features = ["axum", "vendored"] }