Merge branch 'master' into ss/bakery

This commit is contained in:
Chris Tsang 2021-07-08 01:18:18 +08:00
commit dbe950e628

View File

@ -12,24 +12,18 @@ members = [
[package] [package]
name = "sea-orm" name = "sea-orm"
version = "0.1.0" version = "0.1.0"
authors = ["Chris Tsang <tyt2y7@gmail.com>"] authors = [ "Chris Tsang <tyt2y7@gmail.com>" ]
edition = "2018" edition = "2018"
description = "🐚 An async & dynamic ORM for Rust" description = "🐚 An async & dynamic ORM for Rust"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/sea-orm" documentation = "https://docs.rs/sea-orm"
repository = "https://github.com/SeaQL/sea-orm" repository = "https://github.com/SeaQL/sea-orm"
categories = ["database"] categories = [ "database" ]
keywords = ["orm", "database", "sql", "mysql", "postgres", "sqlite", "async"] keywords = [ "orm", "database", "sql", "mysql", "postgres", "sqlite", "async" ]
publish = false publish = false
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = [ features = ["default", "sqlx-mysql", "sqlx-postgres", "sqlx-sqlite", "runtime-async-std-native-tls"]
"default",
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
"runtime-async-std-native-tls",
]
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
[lib] [lib]
@ -37,52 +31,40 @@ name = "sea_orm"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
async-stream = { version="^0.3" } async-stream = { version = "^0.3" }
chrono = { version="^0", optional=true } chrono = { version = "^0", optional = true }
futures = { version="^0.3" } futures = { version = "^0.3" }
futures-util = { version="^0.3" } futures-util = { version = "^0.3" }
rust_decimal = "1.14" sea-query = { version = "^0.12" }
rust_decimal_macros = "1.14" sea-orm-macros = { path = "sea-orm-macros", optional = true }
serde = { version = "^1.0", features = [ "derive" ] }
sea-query = { version="^0.12.5" } sqlx = { version = "^0.5", optional = true }
# sea-query = { path="../sea-query", features=[ strum = { git = "https://github.com/SeaQL/strum.git", branch = "sea-orm", version = "^0.21", features = [ "derive", "sea-orm" ] }
# "with-rust_decimal", serde_json = { version = "^1", optional = true }
# "postgres-rust_decimal",
# "sqlx-mysql",
# ] }
sea-orm-macros = { path="sea-orm-macros", optional=true }
serde = { version="^1.0", features=["derive"] }
sqlx = { version="^0.5", optional=true }
strum = { git="https://github.com/SeaQL/strum.git", branch="sea-orm", version="^0.21", features=["derive", "sea-orm"] }
serde_json = { version="^1", optional=true }
[dev-dependencies] [dev-dependencies]
async-std = { version="^1.9", features=["attributes"] } async-std = { version = "^1.9", features = [ "attributes" ] }
maplit = { version="^1" } maplit = { version = "^1" }
sea-orm = { path=".", features=[ sea-orm = { path = ".", features = ["sqlx-sqlite", "sqlx-json", "sqlx-chrono", "sqlx-decimal", "runtime-async-std-native-tls"] }
"sqlx-sqlite",
"sqlx-json",
"sqlx-chrono",
"runtime-async-std-native-tls",
] }
[features] [features]
debug-print = [] debug-print = []
default = ["macros", "with-json", "with-chrono", "mock"] default = [ "macros", "with-json", "with-chrono", "with-rust_decimal", "mock" ]
macros = ["sea-orm-macros"] macros = [ "sea-orm-macros" ]
mock = [] mock = []
with-json = ["serde_json", "sea-query/with-json"] with-json = [ "serde_json", "sea-query/with-json" ]
with-chrono = ["chrono", "sea-query/with-chrono"] with-chrono = [ "chrono", "sea-query/with-chrono" ]
sqlx-dep = ["sqlx"] with-rust_decimal = [ "sea-query/with-rust_decimal" ]
sqlx-json = ["sqlx/json", "with-json"] sqlx-dep = [ "sqlx" ]
sqlx-chrono = ["sqlx/chrono", "with-chrono"] sqlx-json = [ "sqlx/json", "with-json" ]
sqlx-mysql = ["sqlx-dep", "sea-query/sqlx-mysql", "sqlx/mysql"] sqlx-chrono = [ "sqlx/chrono", "with-chrono" ]
sqlx-postgres = ["sqlx-dep", "sea-query/sqlx-postgres", "sqlx/postgres"] sqlx-decimal = [ "sqlx/decimal", "with-rust_decimal" ]
sqlx-sqlite = ["sqlx-dep", "sea-query/sqlx-sqlite", "sqlx/sqlite"] sqlx-mysql = [ "sqlx-dep", "sea-query/sqlx-mysql", "sqlx/mysql" ]
runtime-actix-native-tls = ["sqlx/runtime-actix-native-tls"] sqlx-postgres = [ "sqlx-dep", "sea-query/sqlx-postgres", "sqlx/postgres" ]
runtime-async-std-native-tls = ["sqlx/runtime-async-std-native-tls"] sqlx-sqlite = [ "sqlx-dep", "sea-query/sqlx-sqlite", "sqlx/sqlite" ]
runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls"] runtime-actix-native-tls = [ "sqlx/runtime-actix-native-tls" ]
runtime-actix-rustls = ["sqlx/runtime-actix-rustls"] runtime-async-std-native-tls = [ "sqlx/runtime-async-std-native-tls" ]
runtime-async-std-rustls = ["sqlx/runtime-async-std-rustls"] runtime-tokio-native-tls = [ "sqlx/runtime-tokio-native-tls" ]
runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls"] runtime-actix-rustls = [ "sqlx/runtime-actix-rustls" ]
runtime-async-std-rustls = [ "sqlx/runtime-async-std-rustls" ]
runtime-tokio-rustls = [ "sqlx/runtime-tokio-rustls" ]