This commit is contained in:
Chris Tsang 2021-08-07 21:02:15 +08:00
parent 2060e30f06
commit 18f494109b
3 changed files with 5 additions and 9 deletions

View File

@ -41,10 +41,8 @@ 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 = { version = "^1", optional = true } rust_decimal = { version = "^1", optional = true }
sea-query = { version = "~0.12.8" } sea-query = { version = "^0.12.8" }
# sea-query = { path = "../sea-query" }
sea-orm-macros = { path = "sea-orm-macros", optional = true } sea-orm-macros = { path = "sea-orm-macros", optional = true }
sea-orm-codegen = { path = "sea-orm-codegen", optional = true }
serde = { version = "^1.0", features = ["derive"] } serde = { version = "^1.0", features = ["derive"] }
sqlx = { version = "^0.5", optional = true } sqlx = { version = "^0.5", optional = true }
sqlx-core = { version = "^0.5", optional = true } sqlx-core = { version = "^0.5", optional = true }
@ -68,15 +66,13 @@ sea-orm = { path = ".", features = ["debug-print"] }
debug-print = [] debug-print = []
default = [ default = [
"macros", "macros",
"codegen", "mock",
"with-json", "with-json",
"with-chrono", "with-chrono",
"with-rust_decimal", "with-rust_decimal",
"mock",
"with-uuid", "with-uuid",
] ]
macros = ["sea-orm-macros"] macros = ["sea-orm-macros"]
codegen = ["sea-orm-codegen"]
mock = [] mock = []
with-json = ["serde_json", "sea-query/with-json", "sqlx-json"] with-json = ["serde_json", "sea-query/with-json", "sqlx-json"]
with-chrono = ["chrono", "sea-query/with-chrono", "sqlx-chrono"] with-chrono = ["chrono", "sea-query/with-chrono", "sqlx-chrono"]

View File

@ -20,13 +20,13 @@ clap = { version = "^2.33.3" }
dotenv = { version = "^0.15" } dotenv = { version = "^0.15" }
async-std = { version = "^1.9", features = [ "attributes" ] } async-std = { version = "^1.9", features = [ "attributes" ] }
sea-orm-codegen = { path = "../sea-orm-codegen" } sea-orm-codegen = { path = "../sea-orm-codegen" }
sea-schema = { version = "^0.2", git = "https://github.com/SeaQL/sea-schema.git", branch = "pg-discovery-writer", default-features = false, features = [ sea-schema = { version = "^0.2.4", default-features = false, features = [
"sqlx-mysql", "sqlx-mysql",
"sqlx-postgres", "sqlx-postgres",
"discovery", "discovery",
"writer", "writer",
] } ] }
sqlx = { version = "^0.5", default-features = false, features = [ "mysql" ] } sqlx = { version = "^0.5", default-features = false, features = [ "mysql", "postgres" ] }
[features] [features]
default = [ "runtime-async-std-native-tls" ] default = [ "runtime-async-std-native-tls" ]

View File

@ -16,7 +16,7 @@ name = "sea_orm_codegen"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
sea-query = { version = "~0.12.8", git = "https://github.com/SeaQL/sea-query.git" } sea-query = { version = "^0.12.8" }
syn = { version = "^1", default-features = false, features = [ syn = { version = "^1", default-features = false, features = [
"derive", "derive",
"parsing", "parsing",