-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
67 lines (59 loc) · 1.69 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
[package]
name = "xiayu"
version = "0.1.0-alpha0"
edition = "2018"
authors = ["songww <sww4718168@163.com>"]
description = "ORM powered by SQLx."
documentation = "https://docs.rs/xiayu"
homepage = "https://github.com/songww/xiayu"
keywords = ["orm", "sqlx", "sqlite", "mysql", "mssql", "postgresql"]
license = "MIT OR Apache-2.0"
readme = "README.md"
[package.metadata.docs.rs]
features = ["docs", "all"]
[lib]
name = "xiayu"
[dependencies]
xiayu-derive = { version = "0.1.0-alpha0", path = "./derive" }
thiserror = "1.0"
tracing = "0.1"
hex = "0.4"
sqlx = { version = "0.5" }
either = { version = "1.6", optional = true }
serde_json = { version = "1.0", optional = true }
base64 = { version = "0.13", optional = true }
num-bigint = { version = "0.4", optional = true }
derive_more = { version = "0.99", features = ["as_ref", "as_mut", "deref", "deref_mut"] }
indoc = { version = "1.0", optional = true }
num = { version = "0.4.0", optional = true }
async-trait = "0.1.51"
[dev-dependencies]
tokio = { version = "1.10", features = ["rt"] }
entities = { path = "./entity-examples", package = "xiayu-entity-examples" }
[features]
default = [ "sqlite", "mysql" ]
docs = [ "sqlx/runtime-tokio-rustls" ]
mssql = [ "uuid", "chrono", "either", "sqlx/mssql", "indoc" ]
mysql = [ "sqlx/mysql" ]
sqlite = [ "sqlx/sqlite" ]
postgres = [ "sqlx/postgres" ]
uuid = [ "sqlx/uuid" ]
json = [ "base64", "sqlx/json", "serde_json", "num/serde" ]
chrono = [ "sqlx/chrono" ]
decimal = [ "sqlx/decimal" ]
bigdecimal = [ "num", "num-bigint", "sqlx/bigdecimal" ]
all = [
"mssql",
"mysql",
"sqlite",
"postgres",
"json",
"uuid",
"chrono",
"bigdecimal",
]
[workspace]
members = [
"derive",
"entity-examples"
]