- Introduced `SessionId` newtype for validated session identifiers, ensuring safety against path traversal attacks. - Updated session repository methods to accept `SessionId` instead of raw strings, enhancing type safety. - Removed redundant error handling in repository methods by leveraging the new `Error` type from `zesdex_utils`. - Simplified atomic JSON write operations by eliminating unnecessary error conversions. - Enhanced integer casting with a new `CastOr` trait for safer narrowing conversions. - Removed deprecated error handling code and consolidated error types across the codebase. - Updated HTTP handlers to utilize the new session ID validation, improving overall robustness.
19 lines
400 B
TOML
19 lines
400 B
TOML
[package]
|
|
name = "zesdex-cms"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
|
|
[dependencies]
|
|
thiserror.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
anyhow.workspace = true
|
|
chrono.workspace = true
|
|
uuid.workspace = true
|
|
tracing.workspace = true
|
|
hex.workspace = true
|
|
dirs.workspace = true
|
|
zesdex-entities.workspace = true
|
|
zesdex-utils.workspace = true
|