forked from SeaQL/sea-query
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
113 lines (101 loc) · 3.49 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[workspace]
members = [
".",
"sea-query-derive",
"sea-query-driver",
"examples/postgres",
"examples/postgres_json",
"examples/cockroach",
"examples/cockroach_json",
"examples/rusqlite",
"examples/sqlx_mysql",
"examples/sqlx_postgres",
"examples/sqlx_sqlite",
]
[package]
name = "sea-query"
version = "0.25.0"
authors = [
"Chris Tsang <tyt2y7@gmail.com>",
"Billy Chan <ccw.billy.123@gmail.com>",
]
edition = "2021"
description = "🌊 A dynamic query builder for MySQL, Postgres and SQLite"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/sea-query"
repository = "https://github.com/SeaQL/sea-query"
categories = ["database"]
keywords = ["database", "sql", "mysql", "postgres", "sqlite"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
name = "sea_query"
path = "src/lib.rs"
[dependencies]
sea-query-attr = { version = "^0.1.1", path = "sea-query-attr", optional = true }
sea-query-derive = { version = "0.2.0", path = "sea-query-derive", optional = true }
sea-query-driver = { version = "^0.1.1", path = "sea-query-driver", optional = true }
serde_json = { version = "^1", optional = true }
bytes = { version = "^1", optional = true }
chrono = { version = "^0", optional = true }
postgres-types = { version = "^0", optional = true }
rust_decimal = { version = "^1", optional = true }
bigdecimal = { version = "^0.2", optional = true }
uuid = { version = "^0", optional = true }
proc-macro2 = { version = "1", optional = true }
quote = { version = "^1", optional = true }
time = { version = "^0.2", optional = true }
[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
pretty_assertions = { version = "^1" }
[features]
backend-mysql = []
backend-postgres = []
backend-sqlite = []
default = ["derive", "backend-mysql", "backend-postgres", "backend-sqlite"]
derive = ["sea-query-derive"]
attr = ["sea-query-attr"]
postgres = ["bytes", "postgres-types"]
postgres-chrono = ["with-chrono", "postgres-types/with-chrono-0_4"]
postgres-json = ["with-json", "postgres-types/with-serde_json-1"]
postgres-rust_decimal = ["with-rust_decimal", "rust_decimal/db-postgres"]
postgres-bigdecimal = ["with-bigdecimal"]
postgres-uuid = ["with-uuid", "postgres-types/with-uuid-0_8"]
postgres-array = ["postgres-types/array-impls", "sea-query-driver?/postgres-array"]
postgres-interval = ["proc-macro2", "quote"]
postgres-time = ["with-time", "postgres-types/with-time-0_2"]
rusqlite = ["sea-query-driver/rusqlite"]
sqlx-mysql = ["sea-query-driver/sqlx-mysql"]
sqlx-postgres = ["sea-query-driver/sqlx-postgres"]
sqlx-sqlite = ["sea-query-driver/sqlx-sqlite"]
thread-safe = []
with-chrono = ["chrono", "sea-query-driver?/with-chrono"]
with-json = ["serde_json", "sea-query-driver?/with-json"]
with-rust_decimal = ["rust_decimal", "sea-query-driver?/with-rust_decimal"]
with-bigdecimal = ["bigdecimal", "sea-query-driver?/with-bigdecimal"]
with-uuid = ["uuid", "sea-query-driver?/with-uuid"]
with-time = ["time", "sea-query-driver?/with-time"]
[[test]]
name = "test-derive"
path = "tests/derive/mod.rs"
required-features = ["derive"]
[[test]]
name = "test-error"
path = "tests/error/mod.rs"
required-features = []
[[test]]
name = "test-mysql"
path = "tests/mysql/mod.rs"
required-features = ["backend-mysql"]
[[test]]
name = "test-postgres"
path = "tests/postgres/mod.rs"
required-features = ["backend-postgres"]
[[test]]
name = "test-sqlite"
path = "tests/sqlite/mod.rs"
required-features = ["backend-sqlite"]
[[bench]]
name = "basic"
harness = false