[package]
edition = "2021"
rust-version = "1.86"
name = "allframe-core"
version = "0.1.13"
authors = ["AllFrame Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AllFrame core - complete web framework with HTTP/2 server, REST/GraphQL/gRPC, DI, CQRS"
homepage = "https://all-source-os.github.io/all-frame"
documentation = "https://docs.rs/allframe"
readme = "README.md"
keywords = [
"web",
"framework",
"api",
"tdd",
"clean-architecture",
]
categories = [
"web-programming::http-server",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/all-source-os/all-frame"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]
[features]
auth = []
auth-axum = [
"auth",
"tower",
"hyper",
]
auth-jwt = [
"auth",
"jsonwebtoken",
"chrono",
]
auth-tonic = [
"auth",
"router-grpc",
]
cache-memory = [
"moka",
"dashmap",
]
cache-redis = ["redis"]
cqrs = ["allframe-macros"]
cqrs-allsource = [
"cqrs",
"allsource-core",
"chrono",
]
cqrs-postgres = [
"cqrs-allsource",
"allsource-core/postgres",
]
cqrs-rocksdb = [
"cqrs-allsource",
"allsource-core/rocksdb-storage",
]
default = [
"di",
"openapi",
"router",
"otel",
"health",
]
di = ["allframe-macros"]
grpc-tls = ["router-grpc-tls"]
health = [
"hyper",
"hyper-util",
]
http-client = ["reqwest"]
keyword-search = [
"cqrs-allsource",
"allsource-core/keyword-search",
]
metrics = ["prometheus"]
openapi = []
otel = [
"allframe-macros",
"tracing",
]
otel-otlp = [
"otel",
"opentelemetry",
"opentelemetry_sdk",
"opentelemetry-otlp",
"tracing-opentelemetry",
"tracing-subscriber",
]
rate-limit = ["governor"]
resilience = [
"allframe-macros",
"backoff",
"governor",
"dashmap",
"parking_lot",
"rand",
]
resilience-redis = [
"resilience",
"redis",
]
router = ["toml"]
router-full = [
"router-graphql",
"router-grpc",
]
router-graphql = [
"router",
"async-graphql",
"async-graphql-parser",
]
router-grpc = [
"router",
"tonic",
"tonic-reflection",
"tonic-health",
"prost",
"prost-types",
"tonic-build",
"tokio-stream",
"futures",
]
router-grpc-tls = [
"router-grpc",
"tonic/tls-ring",
"tonic/tls-native-roots",
"rustls-pemfile",
"tokio-rustls",
]
security = [
"allframe-macros",
"url",
]
utils = [
"chrono",
"url",
"parking_lot",
"rand",
]
vector-search = [
"cqrs-allsource",
"allsource-core/vector-search",
]
[lib]
name = "allframe_core"
path = "src/lib.rs"
[[example]]
name = "all_features"
path = "examples/all_features.rs"
[[example]]
name = "default_features"
path = "examples/default_features.rs"
[[example]]
name = "graceful_shutdown"
path = "examples/graceful_shutdown.rs"
[[example]]
name = "graphql_docs"
path = "examples/graphql_docs.rs"
[[example]]
name = "grpc_docs"
path = "examples/grpc_docs.rs"
[[example]]
name = "minimal"
path = "examples/minimal.rs"
[[example]]
name = "protocol_agnostic"
path = "examples/protocol_agnostic.rs"
[[example]]
name = "scalar_docs"
path = "examples/scalar_docs.rs"
[[example]]
name = "shutdown_patterns"
path = "examples/shutdown_patterns.rs"
[dependencies.allframe-macros]
version = "0.1.13"
optional = true
[dependencies.allsource-core]
version = "0.10.3"
optional = true
default-features = false
[dependencies.async-graphql]
version = "7.0"
optional = true
[dependencies.async-graphql-parser]
version = "7.0"
optional = true
[dependencies.async-trait]
version = "0.1"
[dependencies.backoff]
version = "0.4"
features = ["tokio"]
optional = true
[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true
[dependencies.dashmap]
version = "6.0"
optional = true
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.governor]
version = "0.6"
optional = true
[dependencies.hyper]
version = "1.8"
features = ["full"]
optional = true
[dependencies.hyper-util]
version = "0.1"
features = [
"tokio",
"server-auto",
]
optional = true
[dependencies.jsonwebtoken]
version = "9.3"
optional = true
[dependencies.moka]
version = "0.12"
features = ["future"]
optional = true
[dependencies.opentelemetry]
version = "0.27"
optional = true
[dependencies.opentelemetry-otlp]
version = "0.27"
features = ["tonic"]
optional = true
[dependencies.opentelemetry_sdk]
version = "0.27"
features = ["rt-tokio"]
optional = true
[dependencies.parking_lot]
version = "0.12"
optional = true
[dependencies.prometheus]
version = "0.13"
optional = true
[dependencies.prost]
version = "0.14"
optional = true
[dependencies.prost-types]
version = "0.14"
optional = true
[dependencies.rand]
version = "0.8"
optional = true
[dependencies.redis]
version = "0.27"
features = [
"tokio-comp",
"connection-manager",
]
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.rustls-pemfile]
version = "2.0"
optional = true
[dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.48"
features = ["full"]
[dependencies.tokio-rustls]
version = "0.26"
optional = true
[dependencies.tokio-stream]
version = "0.1"
optional = true
[dependencies.toml]
version = "0.8"
optional = true
[dependencies.tonic]
version = "0.14"
features = [
"transport",
"codegen",
]
optional = true
[dependencies.tonic-health]
version = "0.14"
optional = true
[dependencies.tonic-reflection]
version = "0.14"
optional = true
[dependencies.tower]
version = "0.5"
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.tracing-opentelemetry]
version = "0.28"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
optional = true
[dependencies.url]
version = "2.5"
optional = true
[dev-dependencies.mockall]
version = "0.13"
[dev-dependencies.proptest]
version = "1.6"
[build-dependencies.tonic-build]
version = "0.14"
optional = true