[package]
edition = "2024"
name = "modo"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic Rust web framework for small monolithic apps"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/dmitrymomot/modo"
resolver = "2"
[features]
csrf = [
"dep:rand",
"dep:hmac",
"dep:sha2",
"dep:subtle",
"dep:form_urlencoded",
"dep:http",
]
default = []
i18n = [
"dep:futures-util",
"dep:http",
]
sse = ["dep:futures-util"]
static-embed = [
"dep:rust-embed",
"dep:mime_guess",
"modo-macros/static-embed",
]
static-fs = ["tower-http/fs"]
templates = [
"dep:minijinja",
"dep:futures-util",
"dep:http",
]
[lib]
name = "modo"
path = "src/lib.rs"
[[test]]
name = "app_builder"
path = "tests/app_builder.rs"
[[test]]
name = "error_handler_macro"
path = "tests/error_handler_macro.rs"
[[test]]
name = "error_handling"
path = "tests/error_handling.rs"
[[test]]
name = "handler_macro"
path = "tests/handler_macro.rs"
[[test]]
name = "health"
path = "tests/health.rs"
[[test]]
name = "i18n_integration"
path = "tests/i18n_integration.rs"
[[test]]
name = "i18n_template_integration"
path = "tests/i18n_template_integration.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "module_macro"
path = "tests/module_macro.rs"
[[test]]
name = "request_id"
path = "tests/request_id.rs"
[[test]]
name = "route_registration"
path = "tests/route_registration.rs"
[[test]]
name = "sanitization"
path = "tests/sanitization.rs"
[[test]]
name = "service_extractor"
path = "tests/service_extractor.rs"
[[test]]
name = "sse_broadcast"
path = "tests/sse_broadcast.rs"
[[test]]
name = "sse_channel"
path = "tests/sse_channel.rs"
[[test]]
name = "sse_config"
path = "tests/sse_config.rs"
[[test]]
name = "sse_event"
path = "tests/sse_event.rs"
[[test]]
name = "sse_last_event_id"
path = "tests/sse_last_event_id.rs"
[[test]]
name = "sse_response"
path = "tests/sse_response.rs"
[[test]]
name = "sse_stream_ext"
path = "tests/sse_stream_ext.rs"
[[test]]
name = "templates_context_layer"
path = "tests/templates_context_layer.rs"
[[test]]
name = "templates_context_merge"
path = "tests/templates_context_merge.rs"
[[test]]
name = "templates_e2e"
path = "tests/templates_e2e.rs"
[[test]]
name = "templates_render_layer"
path = "tests/templates_render_layer.rs"
[[test]]
name = "templates_view_macro"
path = "tests/templates_view_macro.rs"
[[test]]
name = "templates_view_render_macro"
path = "tests/templates_view_render_macro.rs"
[[test]]
name = "templates_view_render_trait"
path = "tests/templates_view_render_trait.rs"
[[test]]
name = "templates_view_renderer"
path = "tests/templates_view_renderer.rs"
[[test]]
name = "templates_view_response"
path = "tests/templates_view_response.rs"
[[test]]
name = "validation"
path = "tests/validation.rs"
[dependencies.anyhow]
version = "1"
[dependencies.axum]
version = "0.8"
[dependencies.axum-extra]
version = "0.10"
features = [
"cookie-signed",
"cookie-private",
]
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.cookie]
version = "0.18"
features = ["key-expansion"]
[dependencies.dashmap]
version = "6"
[dependencies.dotenvy]
version = "0.15"
[dependencies.form_urlencoded]
version = "1"
optional = true
[dependencies.futures-util]
version = "0.3"
optional = true
[dependencies.hmac]
version = "0.12"
optional = true
[dependencies.http]
version = "1"
optional = true
[dependencies.inventory]
version = "0.3"
[dependencies.mime_guess]
version = "2"
optional = true
[dependencies.minijinja]
version = "2"
features = ["loader"]
optional = true
[dependencies.modo-macros]
version = "0.2"
[dependencies.rand]
version = "0.9"
optional = true
[dependencies.rust-embed]
version = "8"
features = ["axum"]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml_ng]
version = "0.10"
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.subtle]
version = "2"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tower]
version = "0.5"
[dependencies.tower-http]
version = "0.6"
features = [
"trace",
"cors",
"timeout",
"limit",
"compression-full",
"catch-panic",
"sensitive-headers",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"registry",
]
[dependencies.ulid]
version = "1"
[dev-dependencies.futures-util]
version = "0.3"
[dev-dependencies.http]
version = "1"
[dev-dependencies.minijinja]
version = "2"
[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]