Set sea-query to ~0.12.8

This commit is contained in:
Sam Samai 2021-07-25 21:12:38 +10:00
parent 6efb06d28b
commit ef27c2bd57
3 changed files with 29 additions and 22 deletions

View File

@ -42,9 +42,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" } sea-query = { version = "~0.12.8" }
# sea-query = { path = "../sea-query" } # sea-query = { path = "../sea-query" }
# sea-query = { version = "^0.12", git = "https://github.com/samsamai/sea-query.git", branch = "ss/uuid" }
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 } sea-orm-codegen = { path = "sea-orm-codegen", optional = true }
serde = { version = "^1.0", features = ["derive"] } serde = { version = "^1.0", features = ["derive"] }
@ -64,12 +63,7 @@ tokio = { version = "^1.6", features = ["full"] }
actix-rt = { version = "2.2.0" } actix-rt = { version = "2.2.0" }
maplit = { version = "^1" } maplit = { version = "^1" }
rust_decimal_macros = { version = "^1" } rust_decimal_macros = { version = "^1" }
sea-orm = { path = ".", features = [ sea-orm = { path = ".", features = ["debug-print"] }
"sqlx-json",
"sqlx-chrono",
"sqlx-decimal",
"debug-print",
] }
[features] [features]
debug-print = [] debug-print = []
@ -89,9 +83,13 @@ default = [
macros = ["sea-orm-macros"] macros = ["sea-orm-macros"]
codegen = ["sea-orm-codegen"] codegen = ["sea-orm-codegen"]
mock = [] mock = []
with-json = ["serde_json", "sea-query/with-json"] with-json = ["serde_json", "sea-query/with-json", "sqlx-json"]
with-chrono = ["chrono", "sea-query/with-chrono"] with-chrono = ["chrono", "sea-query/with-chrono", "sqlx-chrono"]
with-rust_decimal = ["rust_decimal", "sea-query/with-rust_decimal"] with-rust_decimal = [
"rust_decimal",
"sea-query/with-rust_decimal",
"sqlx-decimal",
]
with-uuid = [ with-uuid = [
"uuid", "uuid",
"sea-query/with-uuid", "sea-query/with-uuid",

View File

@ -5,10 +5,10 @@ edition = "2018"
publish = false publish = false
[dependencies] [dependencies]
async-std = { version = "^1.9", features = [ "attributes" ] } async-std = { version = "^1.9", features = ["attributes"] }
sea-orm = { path = "../../" } sea-orm = { path = "../../" }
sea-orm-codegen = { path = "../../sea-orm-codegen" } sea-orm-codegen = { path = "../../sea-orm-codegen" }
sea-query = { version = "^0.12" } sea-query = { version = "~0.12.8" }
strum = { version = "^0.20", features = [ "derive" ] } strum = { version = "^0.20", features = ["derive"] }
serde_json = { version = "^1" } serde_json = { version = "^1" }
quote = { version = "^1" } quote = { version = "^1" }

View File

@ -1,14 +1,14 @@
[package] [package]
name = "sea-orm-codegen" name = "sea-orm-codegen"
version = "0.1.0" version = "0.1.0"
authors = [ "Billy Chan <ccw.billy.123@gmail.com>" ] authors = ["Billy Chan <ccw.billy.123@gmail.com>"]
edition = "2018" edition = "2018"
description = "" description = ""
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" ] keywords = ["orm", "database", "sql", "mysql", "postgres", "sqlite"]
publish = false publish = false
[lib] [lib]
@ -16,16 +16,25 @@ name = "sea_orm_codegen"
path = "src/lib.rs" path = "src/lib.rs"
[dependencies] [dependencies]
sea-schema = { version = "^0.2", default-features = false, features = [ "sqlx-mysql", "discovery", "writer" ] } sea-schema = { version = "^0.2", default-features = false, features = [
sea-query = { version = "^0.12" } "sqlx-mysql",
sqlx = { version = "^0.5", default-features = false, features = [ "mysql" ] } "discovery",
syn = { version = "^1", default-features = false, features = [ "derive", "parsing", "proc-macro", "printing" ] } "writer",
] }
sea-query = { version = "~0.12.8" }
sqlx = { version = "^0.5", default-features = false, features = ["mysql"] }
syn = { version = "^1", default-features = false, features = [
"derive",
"parsing",
"proc-macro",
"printing",
] }
quote = "^1" quote = "^1"
heck = "^0.3" heck = "^0.3"
proc-macro2 = "^1" proc-macro2 = "^1"
[dev-dependencies] [dev-dependencies]
async-std = { version = "^1.9", features = [ "attributes" ] } async-std = { version = "^1.9", features = ["attributes"] }
sea-orm = { path = "../" } sea-orm = { path = "../" }
[features] [features]