Lieferbericht zeigte UTC (08.09. 22:54 statt 09.09. 00:54): renderer.dt() formatierte DateTime<Utc> ohne Umrechnung. Weitere Stellen hingen an chrono::Local (OS-Zone des Hosts) bzw. hardcodiertem 'Europe/Berlin'. Neu: server.timezone (IANA, Default Europe/Berlin, chrono-tz) und durchgaengig UTC-Instant -> konfigurierte Zone: - Lieferbericht: alle Zeitstempel (Abgeschlossen, Notizen, Scans, erzeugt am) - Belegansicht (fmt_datetime) - ERP-Rueckschreibung delivered_at (Wanduhrzeit) - 'heute'-Ableitung: /me/tours, /dev/resync, /admin/import-erp, Import-Cron + Startup-Catch-up - Completion-Repo: AT TIME ZONE als Bind-Param statt Literal Speicherung bleibt UTC (TIMESTAMPTZ / DateTime<Utc>) - nur Anzeige und Kalendertag-Ableitung nutzen die Zone. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
53 lines
2.0 KiB
TOML
53 lines
2.0 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = [
|
|
"crates/domain",
|
|
"crates/application",
|
|
"crates/infrastructure",
|
|
"crates/api",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "Proprietary"
|
|
authors = ["Holzleitner GmbH"]
|
|
|
|
[workspace.dependencies]
|
|
# === Externe Crates (zentral gepinnt) =====================================
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
uuid = { version = "1", features = ["serde", "v4"] }
|
|
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
|
|
chrono-tz = { version = "0.10", features = ["serde"] }
|
|
async-trait = "0.1"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["full"] }
|
|
axum = { version = "0.8", features = ["multipart"] }
|
|
tower = "0.5"
|
|
tower-http = { version = "0.6", features = ["trace", "cors"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-appender = "0.2"
|
|
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "macros"] }
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "multipart"] }
|
|
# MSSQL (ERPframe) — nativer async-Treiber. Kein Pool: der ERP-Pull läuft
|
|
# einmal täglich, eine frische Verbindung pro Lauf reicht.
|
|
tiberius = { version = "0.12", default-features = false, features = ["chrono", "rustls", "tds73"] }
|
|
tokio-util = { version = "0.7", features = ["compat"] }
|
|
tokio-cron-scheduler = "0.13"
|
|
jsonwebtoken = "9"
|
|
toml = "0.8"
|
|
anyhow = "1"
|
|
# Windows-Dienst-Integration (SCM). Nur unter Windows kompiliert.
|
|
windows-service = "0.6"
|
|
sha2 = "0.10"
|
|
imagesize = "0.13"
|
|
utoipa = { version = "5", features = ["axum_extras", "chrono", "uuid"] }
|
|
utoipa-swagger-ui = { version = "9", features = ["axum"] }
|
|
|
|
# === Interne Crates =======================================================
|
|
holzleitner-domain = { path = "crates/domain" }
|
|
holzleitner-application = { path = "crates/application" }
|
|
holzleitner-infrastructure = { path = "crates/infrastructure" }
|