-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Cargo.toml
117 lines (112 loc) · 3.13 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
114
115
116
117
[workspace]
members = [
".",
"tests/discovery/mysql",
"tests/discovery/postgres",
"tests/discovery/sqlite",
"tests/writer/mysql",
"tests/writer/postgres",
"tests/writer/sqlite",
"tests/live/mysql",
"tests/live/postgres",
"tests/live/sqlite",
]
[package]
name = "sea-schema"
version = "0.16.0"
authors = [ "Chris Tsang <tyt2y7@gmail.com>" ]
edition = "2021"
description = "🌿 SQL schema definition and discovery"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/sea-schema"
repository = "https://github.com/SeaQL/sea-schema"
categories = ["database"]
keywords = ["database", "sql", "mysql", "postgres"]
rust-version = "1.62"
[package.metadata.docs.rs]
features = ["default"]
rustdoc-args = ["--cfg", "docsrs"]
[lib]
name = "sea_schema"
path = "src/lib.rs"
[dependencies]
futures = { version = "0.3", default-features = false, optional = true, features = ["alloc"] }
sea-schema-derive = { version = "0.3.0", path = "sea-schema-derive", default-features = false }
sea-query = { version = "0.32.0", default-features = false, features = ["derive"] }
sea-query-binder = { version = "0.7.0", default-features = false, optional = true }
serde = { version = "1", default-features = false, optional = true, features = ["derive"] }
sqlx = { version = "0.8", default-features = false, optional = true }
log = { version = "0.4", default-features = false, optional = true }
[features]
default = ["mysql", "postgres", "sqlite", "discovery", "writer", "probe"]
debug-print = ["log"]
mysql = ["sea-query/backend-mysql"]
postgres = ["sea-query/backend-postgres"]
sqlite = ["sea-query/backend-sqlite"]
def = []
discovery = ["futures", "parser"]
parser = ["query"]
query = ["def"]
writer = ["def"]
planetscale = []
probe = ["query"]
sqlx-dep = ["sqlx"]
sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"]
sqlx-mysql = [
"mysql",
"futures",
"sqlx-dep",
"sea-query-binder/sqlx-mysql",
"sqlx/mysql",
]
sqlx-postgres = [
"postgres",
"futures",
"sqlx-dep",
"sea-query-binder/sqlx-postgres",
"sqlx/postgres",
]
sqlx-sqlite = [
"sqlite",
"futures",
"sqlx-dep",
"sea-query-binder/sqlx-sqlite",
"sqlx/sqlite",
]
runtime-actix = [
"sqlx?/runtime-tokio",
"sea-query-binder?/runtime-actix",
]
runtime-async-std = [
"sqlx?/runtime-async-std",
"sea-query-binder?/runtime-async-std",
]
runtime-tokio = [
"sqlx?/runtime-tokio",
"sea-query-binder?/runtime-tokio",
]
runtime-actix-native-tls = [
"sqlx?/runtime-tokio-native-tls",
"sea-query-binder?/runtime-actix-native-tls",
]
runtime-async-std-native-tls = [
"sqlx?/runtime-async-std-native-tls",
"sea-query-binder?/runtime-async-std-native-tls",
]
runtime-tokio-native-tls = [
"sqlx?/runtime-tokio-native-tls",
"sea-query-binder?/runtime-tokio-native-tls",
]
runtime-actix-rustls = [
"sqlx?/runtime-tokio-rustls",
"sea-query-binder?/runtime-actix-rustls",
]
runtime-async-std-rustls = [
"sqlx?/runtime-async-std-rustls",
"sea-query-binder?/runtime-async-std-rustls",
]
runtime-tokio-rustls = [
"sqlx?/runtime-tokio-rustls",
"sea-query-binder?/runtime-tokio-rustls",
]
with-serde = ["serde"]