[package]
edition = "2021"
name = "rustf"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple MVC web framework inspired by Total.js"
homepage = "https://numerum-tech.github.io/rustf/"
documentation = "https://docs.rs/rustf"
readme = "README.md"
keywords = [
"web",
"framework",
"mvc",
"totaljs",
]
categories = ["web-programming::http-server"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/numerum-tech/rustf"
[features]
cli = ["clap"]
database = [
"dep:sqlx",
"decimal",
]
db-mysql = [
"database",
"sqlx/mysql",
]
db-postgres = [
"database",
"sqlx/postgres",
]
db-sqlite = [
"database",
"sqlx/sqlite",
]
decimal = [
"rust_decimal",
"sqlx?/rust_decimal",
]
default = [
"embedded-views",
"redis",
"websocket",
"db-postgres",
"db-mysql",
"db-sqlite",
]
embedded-views = [
"rust-embed",
"rustf-macros/embedded-views",
]
redis = [
"dep:redis",
"dep:deadpool-redis",
]
schema = ["rustf-schema"]
websocket = ["dep:tokio-tungstenite"]
[lib]
name = "rustf"
path = "src/lib.rs"
[[test]]
name = "auto_discovery_nested_test"
path = "tests/auto_discovery_nested_test.rs"
[[test]]
name = "config_refs_test"
path = "tests/config_refs_test.rs"
[[test]]
name = "context_flash_test"
path = "tests/context_flash_test.rs"
[[test]]
name = "context_preservation_test"
path = "tests/context_preservation_test.rs"
[[test]]
name = "context_repository_render_test"
path = "tests/context_repository_render_test.rs"
[[test]]
name = "controller_before_hook_test"
path = "tests/controller_before_hook_test.rs"
[[test]]
name = "enhanced_error_test"
path = "tests/enhanced_error_test.rs"
[[test]]
name = "environment_test"
path = "tests/environment_test.rs"
[[test]]
name = "filter_integration_test"
path = "tests/filter_integration_test.rs"
[[test]]
name = "filter_test"
path = "tests/filter_test.rs"
[[test]]
name = "flash_test"
path = "tests/flash_test.rs"
[[test]]
name = "handler_error_status_test"
path = "tests/handler_error_status_test.rs"
[[test]]
name = "header_preservation_test"
path = "tests/header_preservation_test.rs"
[[test]]
name = "middleware_pipeline_test"
path = "tests/middleware_pipeline_test.rs"
[[test]]
name = "multiline_directive_test"
path = "tests/multiline_directive_test.rs"
[[test]]
name = "qualified_column_test"
path = "tests/qualified_column_test.rs"
[[test]]
name = "real_world_multiline_test"
path = "tests/real_world_multiline_test.rs"
[[test]]
name = "server_hosting_ephemeral_test"
path = "tests/server_hosting_ephemeral_test.rs"
[[test]]
name = "server_hosting_listener_test"
path = "tests/server_hosting_listener_test.rs"
[[test]]
name = "session_config_test"
path = "tests/session_config_test.rs"
[[test]]
name = "session_destroy_test"
path = "tests/session_destroy_test.rs"
[[test]]
name = "session_exemption_test"
path = "tests/session_exemption_test.rs"
[[test]]
name = "session_redis_integration_test"
path = "tests/session_redis_integration_test.rs"
[[test]]
name = "session_secure_cookie_test"
path = "tests/session_secure_cookie_test.rs"
[[test]]
name = "simple_context_test"
path = "tests/simple_context_test.rs"
[[test]]
name = "sqlvalue_refs_test"
path = "tests/sqlvalue_refs_test.rs"
[[test]]
name = "streaming_body_test"
path = "tests/streaming_body_test.rs"
[[test]]
name = "streaming_helpers_test"
path = "tests/streaming_helpers_test.rs"
[[test]]
name = "template_array_length_test"
path = "tests/template_array_length_test.rs"
[[test]]
name = "template_expression_test"
path = "tests/template_expression_test.rs"
[[test]]
name = "template_form_test"
path = "tests/template_form_test.rs"
[[test]]
name = "template_loop_mobile_test"
path = "tests/template_loop_mobile_test.rs"
[[test]]
name = "template_root_test"
path = "tests/template_root_test.rs"
[[test]]
name = "template_title_test"
path = "tests/template_title_test.rs"
[[test]]
name = "test_enum_detection"
path = "tests/test_enum_detection.rs"
[[test]]
name = "test_enum_where_clauses"
path = "tests/test_enum_where_clauses.rs"
[[test]]
name = "test_index_in_expressions"
path = "tests/test_index_in_expressions.rs"
[[test]]
name = "test_index_simple"
path = "tests/test_index_simple.rs"
[[test]]
name = "test_layout_empty_string"
path = "tests/test_layout_empty_string.rs"
[[test]]
name = "test_m_variable"
path = "tests/test_m_variable.rs"
[[test]]
name = "test_null_timestamp_handling"
path = "tests/test_null_timestamp_handling.rs"
[[test]]
name = "test_or_operator_fallback"
path = "tests/test_or_operator_fallback.rs"
[[test]]
name = "test_or_simple"
path = "tests/test_or_simple.rs"
[[test]]
name = "test_postgres_enum_binding"
path = "tests/test_postgres_enum_binding.rs"
[[test]]
name = "test_repository_variable"
path = "tests/test_repository_variable.rs"
[[test]]
name = "test_where_in_fix"
path = "tests/test_where_in_fix.rs"
[[test]]
name = "view_api_test"
path = "tests/view_api_test.rs"
[[test]]
name = "websocket_room_test"
path = "tests/websocket_room_test.rs"
[[test]]
name = "websocket_wire_test"
path = "tests/websocket_wire_test.rs"
[[bench]]
name = "compression"
path = "benches/compression.rs"
harness = false
[[bench]]
name = "configuration"
path = "benches/configuration.rs"
harness = false
[[bench]]
name = "context"
path = "benches/context.rs"
harness = false
[[bench]]
name = "http_date"
path = "benches/http_date.rs"
harness = false
[[bench]]
name = "middleware"
path = "benches/middleware.rs"
harness = false
[[bench]]
name = "minifier"
path = "benches/minifier.rs"
harness = false
[[bench]]
name = "pool"
path = "benches/pool.rs"
harness = false
[[bench]]
name = "request_lifecycle"
path = "benches/request_lifecycle.rs"
harness = false
[[bench]]
name = "routing"
path = "benches/routing.rs"
harness = false
[[bench]]
name = "session"
path = "benches/session.rs"
harness = false
[[bench]]
name = "view_render"
path = "benches/view_render.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.clap]
version = "4.4"
features = ["derive"]
optional = true
[dependencies.dashmap]
version = "6.0"
[dependencies.deadpool-redis]
version = "0.18"
optional = true
[dependencies.flate2]
version = "1.0"
[dependencies.futures]
version = "0.3"
[dependencies.http-body-util]
version = "0.1"
[dependencies.hyper]
version = "1"
features = [
"http1",
"http2",
"server",
]
[dependencies.hyper-util]
version = "0.1"
features = [
"tokio",
"server",
"server-auto",
"server-graceful",
"http1",
"http2",
]
[dependencies.indexmap]
version = "2.0"
[dependencies.ipnetwork]
version = "0.20"
[dependencies.lazy_static]
version = "1.4"
[dependencies.log]
version = "0.4"
[dependencies.md-5]
version = "0.10"
[dependencies.num_cpus]
version = "1.16"
[dependencies.once_cell]
version = "1.0"
[dependencies.percent-encoding]
version = "2.3"
[dependencies.rand]
version = "0.8"
[dependencies.redis]
version = "0.27"
features = ["tokio-comp"]
optional = true
[dependencies.regex]
version = "1.0"
[dependencies.rust-embed]
version = "8.0"
optional = true
[dependencies.rust_decimal]
version = "1.32"
features = ["serde"]
optional = true
[dependencies.rustf-macros]
version = "1.0.0"
[dependencies.rustf-schema]
version = "1.0.0"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde-toml-merge]
version = "0.3"
[dependencies.serde_json]
version = "1.0"
[dependencies.sha1]
version = "0.10"
[dependencies.sha2]
version = "0.10"
[dependencies.simd-json]
version = "0.13"
features = [
"serde",
"alloc",
]
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio-rustls",
"json",
"chrono",
"uuid",
"ipnetwork",
]
optional = true
default-features = false
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.0"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tokio-tungstenite]
version = "0.30"
features = ["handshake"]
optional = true
default-features = false
[dependencies.toml]
version = "0.9"
[dependencies.url]
version = "2.0"
[dependencies.urlencoding]
version = "2.1"
[dependencies.uuid]
version = "1.0"
features = ["v4"]
[dev-dependencies.base64]
version = "0.22"
[dev-dependencies.bytes]
version = "1"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.sha1]
version = "0.10"
[dev-dependencies.tempfile]
version = "3.8"
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tokio-tungstenite]
version = "0.30"
features = ["connect"]