[package]
edition = "2021"
name = "sz-orm-graphql"
version = "3.5.0"
authors = ["SZ-ORM Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GraphQL schema generator and server: SDL generation, model-driven Query/Mutation, optional async-graphql runtime with injectable DB resolver (P2-1: real DB resolver support; falls back to mock data when no resolver is injected)"
homepage = "https://github.com/ljclz/sz-orm"
readme = false
keywords = [
"orm",
"database",
"async",
"sql",
"tokio",
]
categories = [
"database",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/ljclz/sz-orm"
[features]
db-resolver = []
default = []
graphql-complexity = []
graphql-n1 = ["dep:parking_lot"]
graphql-schema-gen = ["dep:sz-orm-macros"]
real = [
"dep:async-graphql",
"dep:async-graphql-axum",
"dep:axum",
"dep:tracing",
]
[lib]
name = "sz_orm_graphql"
path = "src/lib.rs"
[[test]]
name = "graphql_m3"
path = "tests/graphql_m3.rs"
[dependencies.async-graphql]
version = "7"
optional = true
[dependencies.async-graphql-axum]
version = "7"
optional = true
[dependencies.axum]
version = "0.8"
optional = true
[dependencies.parking_lot]
version = "0.12"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sz-orm-macros]
version = "3.5.0"
optional = true
[dependencies.tokio]
version = "1.40"
features = ["full"]
[dependencies.tracing]
version = "0.1"
features = ["attributes"]
optional = true
[lints.clippy]
module_name_repetitions = "allow"
type_complexity = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "warn"