- Dockerfile: Update binary name from attendance to tutortool to fix the release build pipeline failure. - Backend: Expose test_mode in AppState to conditionally disable the secure flag on auth cookies during local E2E testing over HTTP. - Backend: Enable tower-http trace feature and attach TraceLayer for improved request logging. - Frontend: Refactor auth.svelte.ts to a plain reactive object to resolve initialization race conditions during tests. - Frontend: Append cache-busting timestamp to /api/auth/me to prevent stale session states. - Frontend: Update Playwright locator in superadmin.spec.ts for greater resilience. - Makefile: Inject required environment variables (STATIC_DIR, JWT_SECRET) into the test-up target.
29 lines
877 B
TOML
29 lines
877 B
TOML
[package]
|
|
name = "tutortool"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.95.0"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.8", features = ["macros", "multipart"] }
|
|
axum-extra = { version = "0.10", features = ["cookie"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
sqlx = { version = "0.8", features = ["sqlite", "runtime-tokio", "macros", "migrate"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
jsonwebtoken = { version = "10", features = ["rust_crypto"] }
|
|
bcrypt = "0.19"
|
|
tower-http = { version = "0.6", features = ["fs", "cors", "trace"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
rand = "0.9"
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
[dev-dependencies]
|
|
tower = { version = "0.5", features = ["util"] }
|
|
http-body-util = "0.1"
|
|
bytes = "1"
|
|
temp-env = "0.3"
|
|
serial_test = "3.1"
|