-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
82 lines (69 loc) · 1.67 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
[workspace]
members = [
".",
"derive",
]
[package]
name = "xql"
version = "0.2.7"
readme = "README.md"
edition = "2021"
description = "SQL query builder"
homepage = "https://github.com/arch-mage/xql"
repository = "https://github.com/arch-mage/xql"
documentation = "https://docs.rs/xql"
license = "GPL-3.0-or-later"
keywords = ["database", "sqlx", "postgres", "mysql", "sqlite"]
categories = ["database"]
authors = ["M. Awad Syahid <[email protected]>"]
[package.metadata.docs.rs]
features = ["postgres", "mysql", "sqlite"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
derive = ["xql-derive"]
postgres = ["sqlx/postgres"]
mysql = ["sqlx/mysql"]
sqlite = ["sqlx/sqlite"]
use-chrono = ["sqlx/chrono", "chrono"]
use-decimal = ["sqlx/decimal", "rust_decimal"]
[dependencies.xql-derive]
path = "derive"
version = "0.1"
optional = true
[dependencies.sqlx]
version = "0.5"
default-features = false
features = ["runtime-tokio-rustls"]
optional = true
[dependencies.chrono]
version = "0.4"
default-features = false
optional = true
[dependencies.rust_decimal]
version = "1.22"
default-features = false
optional = true
[dev-dependencies.sqlx]
version = "0.5"
default-features = false
features = ["runtime-tokio-rustls", "macros", "postgres", "mysql", "sqlite"]
[dev-dependencies.tokio]
version = "1.17"
default-features = false
features = ["rt-multi-thread", "macros"]
[[test]]
name = "postgres"
path = "tests/postgres.rs"
required-features = ["postgres"]
[[test]]
name = "mysql"
path = "tests/mysql.rs"
required-features = ["mysql"]
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
required-features = ["sqlite"]
[[test]]
name = "derive"
path = "tests/derive.rs"
required-features = ["derive"]