sz-rust-core 1.2.0

SZ-Rust 核心库:HTTP 服务器、路由、控制器、中间件,对标 ThinkPHP 8
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.81"
name = "sz-rust-core"
version = "1.2.0"
authors = ["SZ-Rust Team"]
build = false
exclude = ["docs/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SZ-Rust 核心库:HTTP 服务器、路由、控制器、中间件,对标 ThinkPHP 8"
homepage = "https://github.com/ljclz/sz-rust"
readme = false
keywords = [
    "web",
    "framework",
    "thinkphp",
    "axum",
    "orm",
]
categories = [
    "web-programming",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/ljclz/sz-rust"

[package.metadata.cargo-machete]
ignored = ["md-5"]

[features]
alloc-count = []
bumpalo-pool = [
    "dep:bumpalo",
    "mem-pool",
]
default = []
graphql = [
    "dep:sz-orm-graphql",
    "sz-rust-orm-facade/graphql",
]
grpc = [
    "dep:sz-orm-grpc",
    "sz-rust-orm-facade/grpc",
]
hot-reload = ["dep:libloading"]
mem-pool = []
p2-addons = [
    "graphql",
    "grpc",
    "hot-reload",
]
real-broker = ["sz-orm-mqtt/real-broker"]
redis-session = ["redis"]
simd-json = ["dep:simd-json"]

[lib]
name = "sz_rust_core"
path = "src/lib.rs"

[[example]]
name = "rss_baseline"
path = "examples/rss_baseline.rs"

[[example]]
name = "rss_stability"
path = "examples/rss_stability.rs"

[[test]]
name = "adversarial"
path = "tests/adversarial.rs"

[[test]]
name = "backward_compat"
path = "tests/backward_compat.rs"

[[test]]
name = "cache_parity"
path = "tests/cache_parity.rs"

[[test]]
name = "compact_macro"
path = "tests/compact_macro.rs"

[[test]]
name = "container_tests"
path = "tests/container_tests.rs"

[[test]]
name = "cross_query_test"
path = "tests/cross_query_test.rs"

[[test]]
name = "event_bus_test"
path = "tests/event_bus_test.rs"

[[test]]
name = "fuzz"
path = "tests/fuzz.rs"

[[test]]
name = "middleware_chaos"
path = "tests/middleware_chaos.rs"

[[test]]
name = "proptest_safety"
path = "tests/proptest_safety.rs"

[[test]]
name = "relation_parity"
path = "tests/relation_parity.rs"

[[test]]
name = "runtime_perf"
path = "tests/runtime_perf.rs"

[[test]]
name = "soak"
path = "tests/soak.rs"

[[test]]
name = "soak_p3"
path = "tests/soak_p3.rs"

[[test]]
name = "sql_string"
path = "tests/sql_string.rs"

[[test]]
name = "upload_parity"
path = "tests/upload_parity.rs"

[[test]]
name = "validate"
path = "tests/validate.rs"

[[bench]]
name = "collect_env"
path = "benches/collect_env.rs"

[[bench]]
name = "core_bench"
path = "benches/core_bench.rs"
harness = false

[[bench]]
name = "p3_bench"
path = "benches/p3_bench.rs"
harness = false

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"
features = [
    "macros",
    "multipart",
    "ws",
    "http2",
]

[dependencies.bumpalo]
version = "3"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "gif",
    "bmp",
    "tiff",
    "webp",
    "rayon",
]
default-features = false

[dependencies.libloading]
version = "0.8"
optional = true

[dependencies.md-5]
version = "0.10"

[dependencies.num_cpus]
version = "1"

[dependencies.parking_lot]
version = "0.12"

[dependencies.qrcode]
version = "0.14"

[dependencies.redis]
version = "0.27"
features = [
    "aio",
    "tokio-comp",
    "connection-manager",
]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.serde_yaml]
version = "0.9.34"

[dependencies.sz-orm-auth]
version = "5.0.0"

[dependencies.sz-orm-core]
version = "5.0.0"

[dependencies.sz-orm-graphql]
version = "5.0.0"
optional = true

[dependencies.sz-orm-grpc]
version = "5.0.0"
optional = true

[dependencies.sz-orm-limit]
version = "5.0.0"

[dependencies.sz-orm-logger]
version = "5.0.0"

[dependencies.sz-orm-macros]
version = "5.0.0"

[dependencies.sz-orm-mqtt]
version = "5.0.0"

[dependencies.sz-orm-query-builder]
version = "5.0.0"

[dependencies.sz-orm-queue]
version = "5.0.0"

[dependencies.sz-orm-scheduler]
version = "5.0.0"

[dependencies.sz-orm-sql-validator]
version = "5.0.0"

[dependencies.sz-orm-storage]
version = "5.0.0"

[dependencies.sz-orm-tracing]
version = "5.0.0"

[dependencies.sz-orm-websocket]
version = "5.0.0"
features = ["server"]

[dependencies.sz-rust-addons-loader]
version = "1.2.0"

[dependencies.sz-rust-auth-facade]
version = "1.2.0"

[dependencies.sz-rust-cache-facade]
version = "1.2.0"

[dependencies.sz-rust-http-facade]
version = "1.2.0"

[dependencies.sz-rust-infra-facade]
version = "1.2.0"

[dependencies.sz-rust-macros]
version = "1.2.0"

[dependencies.sz-rust-middleware-facade]
version = "1.2.0"

[dependencies.sz-rust-mvc-facade]
version = "1.2.0"

[dependencies.sz-rust-orm-ext-facade]
version = "1.2.0"

[dependencies.sz-rust-orm-facade]
version = "1.2.0"

[dependencies.sz-rust-pay-facade]
version = "1.2.0"

[dependencies.sz-rust-router-facade]
version = "1.2.0"

[dependencies.sz-rust-state-facade]
version = "1.2.0"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.40"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"
features = ["ring"]
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dependencies.tower]
version = "0.5"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.rcgen]
version = "0.13"

[dev-dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dev-dependencies.tokio]
version = "1.40"
features = [
    "full",
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tower]
version = "0.5"
features = [
    "full",
    "util",
]

[target.'cfg(target_arch = "x86_64")'.dependencies.simd-json]
version = "0.13"
optional = true

[lints.rust]
unsafe_code = "allow"