Dependency cleanup (#1213)

* Dependency cleanup

* Bump sea-query dependency

* Bump sea-query-binder
This commit is contained in:
Billy Chan 2022-11-15 15:10:03 +08:00 committed by GitHub
parent 1bcc8c7b5e
commit 9d2ea8deec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,31 +24,31 @@ name = "sea_orm"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
async-stream = { version = "^0.3" } async-stream = { version = "^0.3", default-features = false }
async-trait = { version = "^0.1" } async-trait = { version = "^0.1", default-features = false }
chrono = { version = "^0.4.20", default-features = false, features = ["clock"], optional = true } chrono = { version = "^0.4.20", default-features = false, optional = true }
time = { version = "^0.3", optional = true } time = { version = "^0.3", default-features = false, optional = true }
futures = { version = "^0.3" } futures = { version = "^0.3", default-features = false, features = ["std"] }
futures-util = { version = "^0.3" } log = { version = "^0.4", default-features = false }
log = { version = "^0.4" } tracing = { version = "^0.1", default-features = false, features = ["attributes", "log"] }
tracing = { version = "^0.1", features = ["log"] } rust_decimal = { version = "^1", default-features = false, optional = true }
rust_decimal = { version = "^1", optional = true } sea-orm-macros = { version = "^0.10.3", path = "sea-orm-macros", default-features = false, optional = true }
sea-orm-macros = { version = "^0.10.3", path = "sea-orm-macros", optional = true }
sea-query = { version = "^0.27.2", features = ["thread-safe"] } sea-query = { version = "^0.27.2", features = ["thread-safe"] }
sea-query-binder = { version = "^0.2.2", optional = true } sea-query-binder = { version = "^0.2.2", default-features = false, optional = true }
sea-strum = { version = "^0.23", features = ["derive", "sea-orm"] } sea-strum = { version = "^0.23", default-features = false, features = ["derive", "sea-orm"] }
serde = { version = "^1.0", features = ["derive"] } serde = { version = "^1.0", default-features = false }
serde_json = { version = "^1.0", optional = true } serde_json = { version = "^1.0", default-features = false, optional = true }
sqlx = { version = "^0.6", optional = true } sqlx = { version = "^0.6", default-features = false, optional = true }
uuid = { version = "^1", features = ["serde", "v4"], optional = true } uuid = { version = "^1", default-features = false, optional = true }
ouroboros = "0.15" ouroboros = { version = "0.15", default-features = false }
url = "^2.2" url = { version = "^2.2", default-features = false }
thiserror = "^1" thiserror = { version = "^1", default-features = false }
[dev-dependencies] [dev-dependencies]
smol = { version = "^1.2" } smol = { version = "^1.2" }
smol-potat = { version = "^1.1" } smol-potat = { version = "^1.1" }
async-std = { version = "^1", features = ["attributes", "tokio1"] } async-std = { version = "^1", features = ["attributes", "tokio1"] }
futures = { version = "^0.3" }
tokio = { version = "^1.6", features = ["full"] } tokio = { version = "^1.6", features = ["full"] }
actix-rt = { version = "2.2.0" } actix-rt = { version = "2.2.0" }
maplit = { version = "^1" } maplit = { version = "^1" }
@ -57,6 +57,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
sea-orm = { path = ".", features = ["mock", "debug-print", "tests-cfg", "postgres-array"] } sea-orm = { path = ".", features = ["mock", "debug-print", "tests-cfg", "postgres-array"] }
pretty_assertions = { version = "^0.7" } pretty_assertions = { version = "^0.7" }
time = { version = "^0.3", features = ["macros"] } time = { version = "^0.3", features = ["macros"] }
uuid = { version = "^1", features = ["v4"] }
once_cell = "1.8" once_cell = "1.8"
[features] [features]
@ -69,9 +70,9 @@ default = [
"with-uuid", "with-uuid",
"with-time", "with-time",
] ]
macros = ["sea-orm-macros"] macros = ["sea-orm-macros", "sea-query/derive"]
mock = [] mock = []
with-json = ["serde_json", "sea-query/with-json", "chrono?/serde", "time?/serde", "sea-query-binder?/with-json", "sqlx?/json"] with-json = ["serde_json", "sea-query/with-json", "chrono?/serde", "time?/serde", "uuid?/serde", "sea-query-binder?/with-json", "sqlx?/json"]
with-chrono = ["chrono", "sea-query/with-chrono", "sea-query-binder?/with-chrono", "sqlx?/chrono"] with-chrono = ["chrono", "sea-query/with-chrono", "sea-query-binder?/with-chrono", "sqlx?/chrono"]
with-rust_decimal = ["rust_decimal", "sea-query/with-rust_decimal", "sea-query-binder?/with-rust_decimal", "sqlx?/decimal"] with-rust_decimal = ["rust_decimal", "sea-query/with-rust_decimal", "sea-query-binder?/with-rust_decimal", "sqlx?/decimal"]
with-uuid = ["uuid", "sea-query/with-uuid", "sea-query-binder?/with-uuid", "sqlx?/uuid"] with-uuid = ["uuid", "sea-query/with-uuid", "sea-query-binder?/with-uuid", "sqlx?/uuid"]
@ -84,34 +85,35 @@ sqlx-postgres = ["sqlx-dep", "sea-query-binder/sqlx-postgres", "sqlx/postgres"]
sqlx-sqlite = ["sqlx-dep", "sea-query-binder/sqlx-sqlite", "sqlx/sqlite"] sqlx-sqlite = ["sqlx-dep", "sea-query-binder/sqlx-sqlite", "sqlx/sqlite"]
runtime-async-std = [] runtime-async-std = []
runtime-async-std-native-tls = [ runtime-async-std-native-tls = [
"sqlx/runtime-async-std-native-tls", "sqlx?/runtime-async-std-native-tls",
"sea-query-binder/runtime-async-std-native-tls", "sea-query-binder?/runtime-async-std-native-tls",
"runtime-async-std", "runtime-async-std",
] ]
runtime-async-std-rustls = [ runtime-async-std-rustls = [
"sqlx/runtime-async-std-rustls", "sqlx?/runtime-async-std-rustls",
"sea-query-binder?/runtime-async-std-rustls",
"runtime-async-std", "runtime-async-std",
] ]
runtime-actix = [] runtime-actix = []
runtime-actix-native-tls = [ runtime-actix-native-tls = [
"sqlx/runtime-actix-native-tls", "sqlx?/runtime-actix-native-tls",
"sea-query-binder/runtime-actix-native-tls", "sea-query-binder?/runtime-actix-native-tls",
"runtime-actix", "runtime-actix",
] ]
runtime-actix-rustls = [ runtime-actix-rustls = [
"sqlx/runtime-actix-rustls", "sqlx?/runtime-actix-rustls",
"sea-query-binder/runtime-actix-rustls", "sea-query-binder?/runtime-actix-rustls",
"runtime-actix", "runtime-actix",
] ]
runtime-tokio = [] runtime-tokio = []
runtime-tokio-native-tls = [ runtime-tokio-native-tls = [
"sqlx/runtime-tokio-native-tls", "sqlx?/runtime-tokio-native-tls",
"sea-query-binder/runtime-tokio-native-tls", "sea-query-binder?/runtime-tokio-native-tls",
"runtime-tokio", "runtime-tokio",
] ]
runtime-tokio-rustls = [ runtime-tokio-rustls = [
"sqlx/runtime-tokio-rustls", "sqlx?/runtime-tokio-rustls",
"sea-query-binder/runtime-tokio-rustls", "sea-query-binder?/runtime-tokio-rustls",
"runtime-tokio", "runtime-tokio",
] ]
tests-cfg = [] tests-cfg = []