[package]
edition = "2024"
rust-version = "1.88"
name = "che-orm"
version = "0.3.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-sqlite",
"dep:rusqlite",
]
[lib]
name = "che_orm"
path = "src/lib.rs"
[[test]]
name = "compile"
path = "tests/compile.rs"
[[test]]
name = "db_enum"
path = "tests/db_enum.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 = "uuid"
path = "tests/uuid.rs"
[dependencies.che-orm-macros]
version = "0.3.0"
[dependencies.deadpool-postgres]
version = "0.14"
optional = true
[dependencies.deadpool-sqlite]
version = "0.12"
optional = true
[dependencies.native-tls]
version = "0.2"
optional = true
[dependencies.postgres-native-tls]
version = "0.5"
optional = true
[dependencies.rusqlite]
version = "0.37"
features = [
"bundled",
"time",
"hooks",
"uuid",
]
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"