che-orm 0.4.0

Typed SQLite and PostgreSQL ORM for che-rest applications
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 = "2024"
rust-version = "1.89"
name = "che-orm"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed SQLite and PostgreSQL ORM for che-rest applications"
homepage = "https://github.com/che4web/che-orm"
documentation = "https://docs.rs/che-orm"
readme = "README.md"
keywords = [
    "orm",
    "sqlite",
    "postgres",
    "database",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/che4web/che-orm"

[features]
default = ["sqlite"]
postgres = [
    "dep:deadpool-postgres",
    "dep:tokio-postgres",
    "dep:postgres-native-tls",
    "dep:native-tls",
]
sqlite = [
    "dep:deadpool",
    "dep:deadpool-sync",
    "dep:rusqlite",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.che-orm-macros]
version = "0.3.2"

[dependencies.deadpool]
version = "0.13"
features = [
    "managed",
    "rt_tokio_1",
]
optional = true
default-features = false

[dependencies.deadpool-postgres]
version = "0.14"
optional = true

[dependencies.deadpool-sync]
version = "0.2"
optional = true

[dependencies.native-tls]
version = "0.2"
optional = true

[dependencies.postgres-native-tls]
version = "0.5"
optional = true

[dependencies.rusqlite]
version = "0.41.1"
features = [
    "bundled",
    "time",
    "hooks",
    "uuid",
    "collation",
    "functions",
]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "formatting",
    "parsing",
    "serde-human-readable",
    "serde-well-known",
]

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
]

[dependencies.tokio-postgres]
version = "0.7"
features = [
    "with-uuid-1",
    "with-time-0_3",
]
optional = true

[dependencies.uuid]
version = "1"
features = [
    "v7",
    "serde",
]

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