* chore: log examples with tracing-subscriber * chore: log [issues] with tracing-subscriber * chore: log [cli] with tracing-subscriber * feat: tracing will emit log if tracing-subscriber is not setup
95 lines
3.2 KiB
TOML
95 lines
3.2 KiB
TOML
[workspace]
|
|
members = [".", "sea-orm-macros", "sea-orm-codegen"]
|
|
|
|
[package]
|
|
name = "sea-orm"
|
|
version = "0.4.2"
|
|
authors = ["Chris Tsang <tyt2y7@gmail.com>"]
|
|
edition = "2021"
|
|
description = "🐚 An async & dynamic ORM for Rust"
|
|
license = "MIT OR Apache-2.0"
|
|
documentation = "https://docs.rs/sea-orm"
|
|
repository = "https://github.com/SeaQL/sea-orm"
|
|
categories = ["database"]
|
|
keywords = ["async", "orm", "mysql", "postgres", "sqlite"]
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["default", "sqlx-all", "runtime-async-std-native-tls"]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lib]
|
|
name = "sea_orm"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
async-stream = { version = "^0.3" }
|
|
async-trait = { version = "^0.1" }
|
|
chrono = { version = "^0", optional = true }
|
|
futures = { version = "^0.3" }
|
|
futures-util = { version = "^0.3" }
|
|
tracing = { version = "0.1", features = ["log"] }
|
|
rust_decimal = { version = "^1", optional = true }
|
|
sea-orm-macros = { version = "^0.4.2", path = "sea-orm-macros", optional = true }
|
|
sea-query = { version = "^0.20.0", features = ["thread-safe"] }
|
|
sea-strum = { version = "^0.21", features = ["derive", "sea-orm"] }
|
|
serde = { version = "^1.0", features = ["derive"] }
|
|
serde_json = { version = "^1", optional = true }
|
|
sqlx = { version = "^0.5", optional = true }
|
|
uuid = { version = "0.8", features = ["serde", "v4"], optional = true }
|
|
ouroboros = "0.14"
|
|
url = "^2.2"
|
|
once_cell = "1.8"
|
|
|
|
[dev-dependencies]
|
|
smol = { version = "^1.2" }
|
|
smol-potat = { version = "^1.1" }
|
|
async-std = { version = "^1.9", features = ["attributes"] }
|
|
tokio = { version = "^1.6", features = ["full"] }
|
|
actix-rt = { version = "2.2.0" }
|
|
maplit = { version = "^1" }
|
|
rust_decimal_macros = { version = "^1" }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
sea-orm = { path = ".", features = ["debug-print"] }
|
|
pretty_assertions = { version = "^0.7" }
|
|
|
|
[features]
|
|
debug-print = []
|
|
default = [
|
|
"macros",
|
|
"mock",
|
|
"with-json",
|
|
"with-chrono",
|
|
"with-rust_decimal",
|
|
"with-uuid",
|
|
]
|
|
macros = ["sea-orm-macros"]
|
|
mock = []
|
|
with-json = ["serde_json", "sea-query/with-json", "chrono/serde"]
|
|
with-chrono = ["chrono", "sea-query/with-chrono"]
|
|
with-rust_decimal = ["rust_decimal", "sea-query/with-rust_decimal"]
|
|
with-uuid = ["uuid", "sea-query/with-uuid"]
|
|
sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"]
|
|
sqlx-dep = ["sqlx-json", "sqlx-chrono", "sqlx-decimal", "sqlx-uuid"]
|
|
sqlx-json = ["sqlx/json", "with-json"]
|
|
sqlx-chrono = ["sqlx/chrono", "with-chrono"]
|
|
sqlx-decimal = ["sqlx/decimal", "with-rust_decimal"]
|
|
sqlx-uuid = ["sqlx/uuid", "with-uuid"]
|
|
sqlx-mysql = ["sqlx-dep", "sea-query/sqlx-mysql", "sqlx/mysql"]
|
|
sqlx-postgres = ["sqlx-dep", "sea-query/sqlx-postgres", "sqlx/postgres"]
|
|
sqlx-sqlite = ["sqlx-dep", "sea-query/sqlx-sqlite", "sqlx/sqlite"]
|
|
runtime-async-std = []
|
|
runtime-async-std-native-tls = [
|
|
"sqlx/runtime-async-std-native-tls",
|
|
"runtime-async-std",
|
|
]
|
|
runtime-async-std-rustls = [
|
|
"sqlx/runtime-async-std-rustls",
|
|
"runtime-async-std",
|
|
]
|
|
runtime-actix = []
|
|
runtime-actix-native-tls = ["sqlx/runtime-actix-native-tls", "runtime-actix"]
|
|
runtime-actix-rustls = ["sqlx/runtime-actix-rustls", "runtime-actix"]
|
|
runtime-tokio = []
|
|
runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls", "runtime-tokio"]
|
|
runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls", "runtime-tokio"]
|