- Added `ValidatedJson` extractor for automatic JSON validation in `events_controller.rs`, `testimonials_controller.rs`, `mentors_controller.rs`, `gacha_items_controller.rs`, and `hackathon_controller.rs`. - Replaced manual permission checks with `require_permissions!` and `require_auth!` macros in relevant controllers to streamline permission handling. - Introduced `sanitization` utilities in `sanitization.rs` for improved input sanitization. - Added `permission_macros.rs` to encapsulate permission checking logic and reduce boilerplate. - Updated dependencies in `Cargo.toml` to include `serde_json` and `validator`. - Implemented error handling improvements in `notification_service.rs` for better response management.
30 lines
666 B
TOML
30 lines
666 B
TOML
[package]
|
|
name = "imphnen-libs"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
imphnen-entities.workspace = true
|
|
once_cell = { workspace = true }
|
|
log.workspace = true
|
|
axum.workspace = true
|
|
tokio.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
validator.workspace = true
|
|
argon2.workspace = true
|
|
lettre.workspace = true
|
|
chrono.workspace = true
|
|
surrealdb.workspace = true
|
|
jsonwebtoken.workspace = true
|
|
dotenvy.workspace = true
|
|
anyhow.workspace = true
|
|
uuid.workspace = true
|
|
base64.workspace = true
|
|
reqwest.workspace = true
|
|
sha2.workspace = true
|
|
hmac.workspace = true
|
|
hex.workspace = true
|
|
urlencoding.workspace = true
|
|
async-trait.workspace = true
|