@@ -16,36 +16,33 @@ authors = [
16
16
features = [" all-databases" , " all-types" , " offline" , " runtime-tokio-native-tls" ]
17
17
18
18
[features ]
19
- default = [" migrate " ]
19
+ default = []
20
20
migrate = [" sha2" , " crc" ]
21
21
22
22
# databases
23
- all-databases = [" postgres" , " mysql" , " sqlite" , " mssql" , " any" ]
24
- postgres = [
25
- " md-5" ,
26
- " sha2" ,
27
- " base64" ,
28
- " sha1" ,
29
- " rand" ,
30
- " hmac" ,
31
- " futures-channel/sink" ,
32
- " futures-util/sink" ,
33
- " json" ,
34
- " dirs" ,
35
- " whoami" ,
36
- " hkdf"
37
- ]
38
- mysql = [
39
- " sha1" ,
40
- " sha2" ,
41
- " generic-array" ,
42
- " num-bigint" ,
43
- " digest" ,
44
- " rand" ,
45
- " rsa" ,
46
- ]
47
- sqlite = [" libsqlite3-sys" , " futures-executor" , " flume" ]
48
- mssql = [" uuid" , " encoding_rs" , " regex" ]
23
+ # postgres = [
24
+ # "md-5",
25
+ # "sha2",
26
+ # "base64",
27
+ # "sha1",
28
+ # "rand",
29
+ # "hmac",
30
+ # "futures-channel/sink",
31
+ # "futures-util/sink",
32
+ # "json",
33
+ # "dirs",
34
+ # "whoami",
35
+ # "hkdf"
36
+ # ]
37
+ # mysql = [
38
+ # "sha1",
39
+ # "sha2",
40
+ # "generic-array",
41
+ # "num-bigint",
42
+ # "digest",
43
+ # "rand",
44
+ # "rsa",
45
+ # ]
49
46
any = []
50
47
51
48
# types
@@ -64,35 +61,6 @@ bigdecimal = ["bigdecimal_", "num-bigint"]
64
61
decimal = [" rust_decimal" , " num-bigint" ]
65
62
json = [" serde" , " serde_json" ]
66
63
67
- # runtimes
68
- runtime-actix-native-tls = [" runtime-tokio-native-tls" ]
69
- runtime-async-std-native-tls = [
70
- " sqlx-rt/runtime-async-std-native-tls" ,
71
- " sqlx/runtime-async-std-native-tls" ,
72
- " _tls-native-tls" ,
73
- " _rt-async-std" ,
74
- ]
75
- runtime-tokio-native-tls = [
76
- " sqlx-rt/runtime-tokio-native-tls" ,
77
- " sqlx/runtime-tokio-native-tls" ,
78
- " _tls-native-tls" ,
79
- " _rt-tokio" ,
80
- ]
81
-
82
- runtime-actix-rustls = [' runtime-tokio-rustls' ]
83
- runtime-async-std-rustls = [
84
- " sqlx-rt/runtime-async-std-rustls" ,
85
- " sqlx/runtime-async-std-rustls" ,
86
- " _tls-rustls" ,
87
- " _rt-async-std" ,
88
- ]
89
- runtime-tokio-rustls = [
90
- " sqlx-rt/runtime-tokio-rustls" ,
91
- " sqlx/runtime-tokio-rustls" ,
92
- " _tls-rustls" ,
93
- " _rt-tokio"
94
- ]
95
-
96
64
# for conditional compilation
97
65
_rt-async-std = []
98
66
_rt-tokio = [" tokio-stream" ]
@@ -106,8 +74,6 @@ offline = ["serde", "either/serde"]
106
74
paste = " 1.0.6"
107
75
ahash = " 0.7.6"
108
76
atoi = " 1.0"
109
- sqlx-rt = { path = " ../sqlx-rt" , version = " 0.6.2" }
110
- base64 = { version = " 0.13.0" , default-features = false , optional = true , features = [" std" ] }
111
77
bigdecimal_ = { version = " 0.3.0" , optional = true , package = " bigdecimal" }
112
78
rust_decimal = { version = " 1.19.0" , optional = true }
113
79
bit-vec = { version = " 0.6.3" , optional = true }
@@ -118,36 +84,22 @@ chrono = { version = "0.4.19", default-features = false, features = ["clock"], o
118
84
crc = { version = " 3" , optional = true }
119
85
crossbeam-queue = " 0.3.2"
120
86
digest = { version = " 0.10.0" , default-features = false , optional = true , features = [" std" ] }
121
- dirs = { version = " 4.0.0" , optional = true }
122
87
encoding_rs = { version = " 0.8.30" , optional = true }
123
88
either = " 1.6.1"
124
89
futures-channel = { version = " 0.3.19" , default-features = false , features = [" sink" , " alloc" , " std" ] }
125
90
futures-core = { version = " 0.3.19" , default-features = false }
91
+ futures-io = " 0.3.24"
126
92
futures-intrusive = " 0.4.0"
127
- futures-util = { version = " 0.3.19" , default-features = false , features = [" alloc" , " sink" ] }
128
- # used by the SQLite worker thread to block on the async mutex that locks the database handle
129
- futures-executor = { version = " 0.3.19" , optional = true }
130
- flume = { version = " 0.10.9" , optional = true , default-features = false , features = [" async" ] }
93
+ futures-util = { version = " 0.3.19" , default-features = false , features = [" alloc" , " sink" , " io" ] }
131
94
generic-array = { version = " 0.14.4" , default-features = false , optional = true }
132
95
hex = " 0.4.3"
133
- hmac = { version = " 0.12.0" , default-features = false , optional = true }
134
- itoa = " 1.0.1"
135
96
ipnetwork = { version = " 0.19.0" , default-features = false , optional = true }
136
97
mac_address = { version = " 1.1.2" , default-features = false , optional = true }
137
- libc = " 0.2.112"
138
- libsqlite3-sys = { version = " 0.25.1" , optional = true , default-features = false , features = [
139
- " pkg-config" ,
140
- " vcpkg" ,
141
- " bundled" ,
142
- " unlock_notify"
143
- ] }
144
98
log = { version = " 0.4.14" , default-features = false }
145
- md-5 = { version = " 0.10.0" , default-features = false , optional = true }
146
99
memchr = { version = " 2.4.1" , default-features = false }
147
100
num-bigint = { version = " 0.4.0" , default-features = false , optional = true , features = [" std" ] }
148
101
once_cell = " 1.9.0"
149
102
percent-encoding = " 2.1.0"
150
- rand = { version = " 0.8.4" , default-features = false , optional = true , features = [" std" , " std_rng" ] }
151
103
regex = { version = " 1.5.5" , optional = true }
152
104
rsa = { version = " 0.6.0" , optional = true }
153
105
rustls = { version = " 0.20.1" , features = [" dangerous_configuration" ], optional = true }
@@ -164,19 +116,15 @@ smallvec = "1.7.0"
164
116
url = { version = " 2.2.2" , default-features = false }
165
117
uuid = { version = " 1.0" , default-features = false , optional = true , features = [" std" ] }
166
118
webpki-roots = { version = " 0.22.0" , optional = true }
167
- whoami = { version = " 1.2.1" , optional = true }
168
- stringprep = " 0.1.2"
169
119
bstr = { version = " 0.2.17" , default-features = false , features = [" std" ], optional = true }
170
- git2 = { version = " 0.14" , default-features = false , optional = true }
171
120
hashlink = " 0.8.0"
172
121
# NOTE: *must* remain below 1.7.0 to allow users to avoid the `ahash` cyclic dependency problem by pinning the version
173
122
# https://github.com/tkaitchuck/aHash/issues/95#issuecomment-874150078
174
123
indexmap = " 1.6.0"
175
- hkdf = { version = " 0.12.0" , optional = true }
176
124
event-listener = " 2.5.2"
177
125
178
126
dotenvy = " 0.15"
179
127
180
128
[dev-dependencies ]
181
- sqlx = { version = " 0.6.2" , path = " .." , features = [" postgres" , " sqlite" , " mysql" ] }
129
+ # sqlx = { version = "0.6.2", path = "..", features = ["postgres", "sqlite", "mysql"] }
182
130
tokio = { version = " 1" , features = [" rt" ] }
0 commit comments