-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
86 lines (72 loc) · 1.79 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
[package]
name = "rorm-db"
version = "0.9.1"
edition = "2021"
categories = ["database"]
keywords = ["async", "orm", "database", "orm"]
repository = "https://github.com/rorm-orm/rorm-db"
authors = ["myOmikron <[email protected]>"]
homepage = "https://rorm.rs"
documentation = "https://docs.rorm.rs"
license = "MIT"
description = "The inner database abstraction layer from rorm."
[lib]
name = "rorm_db"
[dependencies]
rorm-sql = { version = "~0.8", path = "../rorm-sql" }
rorm-declaration = { version = "~0.4", path = "../rorm-declaration" }
# Abstractions for asynchronous programming.
futures = { version = "~0.3" }
# Allow wrapping futures and streams
pin-project = { version = "~1" }
# SQL executor. Optional because it requires a runtime and a TLS implementation.
sqlx = { version = "~0.8", optional = true, default-features = false, features = ["json", "time", "chrono", "uuid", "runtime-tokio"] }
# Logging facade
log = { version = "~0.4" }
# Serialization
serde = { version = "~1", features = ["derive"], optional = true }
[build-dependencies]
rustc_version = "0.4.0"
[package.metadata.docs.rs]
features = ["all-driver", "serde", "tokio", "async-std", "native-tls", "rustls"]
[features]
all-driver = [
"mysql",
"postgres",
"sqlite"
]
serde = [
"dep:serde",
"log/serde",
]
# database backends
mysql = [
"sqlx/mysql",
"rorm-sql/mysql",
"rorm-declaration/mysql"
]
postgres = [
"sqlx/postgres",
"rorm-sql/postgres",
"rorm-declaration/postgres"
]
sqlite = [
"sqlx/sqlite",
"rorm-sql/sqlite",
"rorm-declaration/sqlite"
]
## Exclusive drivers
postgres-only = [
"postgres",
"rorm-sql/postgres-only",
"sqlx/mac_address",
"sqlx/ipnetwork",
"sqlx/bit-vec",
]
# sqlx tls
rustls = [
"sqlx/tls-rustls"
]
native-tls = [
"sqlx/tls-native-tls"
]