# 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 = "2024"
name = "crudcrate"
version = "0.9.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive complete REST APIs from Sea-ORM entities — endpoints, filtering, pagination, batch ops, and OpenAPI on Axum"
documentation = "https://crudcrate.evanjt.com"
readme = "README.md"
keywords = [
    "crud",
    "api",
    "axum",
    "sea-orm",
    "rest",
]
categories = [
    "web-programming",
    "database",
]
license = "MIT"
repository = "https://github.com/evanjt/crudcrate"
resolver = "2"

[features]
default = [
    "sqlite",
    "derive",
]
derive = ["crudcrate-derive"]
mysql = ["sea-orm/sqlx-mysql"]
postgresql = ["sea-orm/sqlx-postgres"]
spring-rs = [
    "spring",
    "spring-web",
    "derive",
]
sqlite = ["sea-orm/sqlx-sqlite"]

[lib]
name = "crudcrate"
path = "src/lib.rs"
proc-macro = false

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

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

[dependencies.axum]
version = "0.8.9"
features = ["macros"]

[dependencies.crudcrate-derive]
version = "=0.9.1"
optional = true

[dependencies.sea-orm]
version = "1.1.20"
features = [
    "runtime-tokio-rustls",
    "macros",
    "with-uuid",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.serde_with]
version = "3.20.0"

[dependencies.spring]
version = "0.4.3"
optional = true

[dependencies.spring-web]
version = "0.4.3"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.utoipa]
version = "5.5.0"

[dependencies.uuid]
version = "1.23.1"
features = [
    "serde",
    "v4",
]

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

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

[dev-dependencies.percent-encoding]
version = "2.3.2"

[dev-dependencies.rust_decimal]
version = "1.42.0"

[dev-dependencies.sea-orm]
version = "1.1.20"
features = [
    "sqlx-sqlite",
    "sqlx-postgres",
    "sqlx-mysql",
    "runtime-tokio-rustls",
    "macros",
    "with-chrono",
    "with-rust_decimal",
]
default-features = false

[dev-dependencies.sea-orm-migration]
version = "1.1.20"

[dev-dependencies.tokio]
version = "1.52.3"
features = ["full"]

[dev-dependencies.tower]
version = "0.5.2"
features = ["util"]

[dev-dependencies.tower-http]
version = "0.6.11"
features = [
    "cors",
    "trace",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.utoipa]
version = "5.5.0"
features = [
    "uuid",
    "chrono",
    "decimal",
]

[dev-dependencies.utoipa-axum]
version = "0.2.0"

[dev-dependencies.utoipa-scalar]
version = "0.3.0"
features = ["axum"]

[lints.clippy]
pedantic = "warn"
