@@ -24,77 +24,72 @@ features = [ "full", "serde-support", "json-1", "uuid-0_8", "chrono-0_4", "array
24
24
[features ]
25
25
default = []
26
26
27
- full = [" pooled" , " sqlite " , " json-1" , " postgresql" , " uuid-0_8" , " chrono-0_4" , " mysql" , " mssql" ]
27
+ full = [" pooled" , " json-1" , " postgresql" , " uuid-0_8" , " chrono-0_4" , " mysql" , " mssql" , " sqlite " ]
28
28
full-postgresql = [" pooled" , " postgresql" , " json-1" , " uuid-0_8" , " chrono-0_4" , " array" ]
29
29
full-mysql = [" pooled" , " mysql" , " json-1" , " uuid-0_8" , " chrono-0_4" ]
30
30
full-sqlite = [" pooled" , " sqlite" , " json-1" , " uuid-0_8" , " chrono-0_4" ]
31
31
full-mssql = [" pooled" , " mssql" ]
32
32
33
- single = [" sqlite " , " json-1" , " postgresql" , " uuid-0_8" , " chrono-0_4" , " mysql" , " mssql" ]
33
+ single = [ " json-1" , " postgresql" , " uuid-0_8" , " chrono-0_4" , " mysql" , " mssql" , " sqlite " ]
34
34
single-postgresql = [" postgresql" , " json-1" , " uuid-0_8" , " chrono-0_4" , " array" ]
35
35
single-mysql = [" mysql" , " json-1" , " uuid-0_8" , " chrono-0_4" ]
36
36
single-sqlite = [" sqlite" , " json-1" , " uuid-0_8" , " chrono-0_4" ]
37
37
single-mssql = [" mssql" ]
38
38
39
39
postgresql = [
40
- " rust_decimal/tokio-pg" ,
41
- " native-tls" ,
42
- " tokio-postgres" ,
43
- " postgres-types" ,
44
- " postgres-native-tls" ,
40
+ " sqlx/postgres" ,
45
41
" array" ,
46
42
" bytes" ,
47
- " tokio" ,
48
43
" bit-vec" ,
49
- " lru-cache "
44
+ " ipnetwork "
50
45
]
51
46
52
47
pooled = [" mobc" ]
53
- sqlite = [" rusqlite " , " libsqlite3-sys " , " tokio/sync " ]
48
+ sqlite = [" sqlx/sqlite " ]
54
49
json-1 = [" serde_json" , " base64" ]
55
- uuid-0_8 = [" uuid" ]
50
+ uuid-0_8 = [" uuid" , " sqlx/uuid " ]
56
51
chrono-0_4 = [" chrono" ]
57
- mysql = [" mysql_async " , " tokio " ]
58
- mssql = [" tiberius" , " uuid-0_8" , " chrono-0_4" , " tokio-util " ]
52
+ mysql = [" sqlx/mysql " ]
53
+ mssql = [" tiberius" , " uuid-0_8" , " chrono-0_4" ]
59
54
tracing-log = [" tracing" , " tracing-core" ]
60
55
array = []
61
56
serde-support = [" serde" , " chrono/serde" ]
62
57
58
+ runtime-tokio = [" tokio" , " tokio-util" , " sqlx/runtime-tokio" , " tiberius/sql-browser-tokio" , " mobc/tokio" ]
59
+ runtime-async-std = [" async-std" , " sqlx/runtime-async-std" , " tiberius/sql-browser-async-std" , " mobc/async-std" ]
60
+
63
61
[dependencies ]
64
62
url = " 2.1"
65
63
metrics = " 0.12"
66
64
percent-encoding = " 2"
67
65
once_cell = " 1.3"
68
66
num_cpus = " 1.12"
69
- rust_decimal = { git = " https://github.com/pimeys/rust-decimal " , branch = " pgbouncer-mode " }
67
+ rust_decimal = " 1.7 "
70
68
futures = " 0.3"
71
69
thiserror = " 1.0"
72
70
async-trait = " 0.1"
73
71
hex = " 0.4"
72
+ bigdecimal = " 0.1"
74
73
75
74
uuid = { version = " 0.8" , optional = true }
76
75
chrono = { version = " 0.4" , optional = true }
77
76
serde_json = { version = " 1.0.48" , optional = true }
78
77
base64 = { version = " 0.11.0" , optional = true }
79
78
lru-cache = { version = " 0.1" , optional = true }
80
79
81
- rusqlite = { version = " 0.21" , features = [" chrono" , " bundled" ], optional = true }
82
- libsqlite3-sys = { version = " 0.17" , default-features = false , features = [" bundled" ], optional = true }
83
-
84
- native-tls = { version = " 0.2" , optional = true }
85
-
86
- mysql_async = { version = " 0.23" , optional = true }
87
-
88
80
log = { version = " 0.4" , features = [" release_max_level_trace" ] }
89
81
tracing = { version = " 0.1" , optional = true }
90
82
tracing-core = { version = " 0.1" , optional = true }
91
83
92
- mobc = { version = " 0.5.7" , optional = true }
84
+ mobc = { version = " 0.5.7" , optional = true , default-features = false , features = [ " unstable " ] }
93
85
bytes = { version = " 0.5" , optional = true }
94
86
tokio = { version = " 0.2" , features = [" rt-threaded" , " macros" , " sync" ], optional = true }
95
87
tokio-util = { version = " 0.3" , features = [" compat" ], optional = true }
88
+ async-std = { version = " 1.6.2" , optional = true }
96
89
serde = { version = " 1.0" , optional = true }
97
90
bit-vec = { version = " 0.6.1" , optional = true }
91
+ ipnetwork = { version = " 0.16.0" , optional = true }
92
+ either = " 1.5.3"
98
93
99
94
[dev-dependencies ]
100
95
tokio = { version = " 0.2" , features = [" rt-threaded" , " macros" ]}
@@ -106,24 +101,17 @@ test-setup = { path = "test-setup" }
106
101
paste = " 1.0"
107
102
108
103
[dependencies .tiberius ]
109
- git = " https://github.com/prisma/tiberius "
104
+ version = " 0.4 "
110
105
optional = true
111
- features = [" rust_decimal" , " sql-browser-tokio" , " chrono" ]
112
- branch = " pgbouncer-mode-hack"
106
+ features = [" rust_decimal" , " chrono" ]
113
107
114
- [dependencies .tokio-postgres ]
115
- git = " https://github.com/pimeys/rust-postgres "
116
- features = [ " with-uuid-0_8 " , " with-chrono-0_4 " , " with-serde_json-1 " , " with-bit-vec-0_6 " ]
117
- branch = " pgbouncer-mode "
108
+ [dependencies .sqlx ]
109
+ path = " ../sqlx "
110
+ default_features = false
111
+ features = [ " decimal " , " json " , " chrono " , " ipnetwork " , " bit-vec " ]
118
112
optional = true
119
113
120
- [dependencies .postgres-types ]
121
- git = " https://github.com/pimeys/rust-postgres"
122
- features = [" with-uuid-0_8" , " with-chrono-0_4" , " with-serde_json-1" , " with-bit-vec-0_6" ]
123
- branch = " pgbouncer-mode"
124
- optional = true
125
-
126
- [dependencies .postgres-native-tls ]
127
- git = " https://github.com/pimeys/rust-postgres"
128
- optional = true
129
- branch = " pgbouncer-mode"
114
+ [[test ]]
115
+ name = " mysql-types"
116
+ path = " tests/mysql/types.rs"
117
+ required-features = [ " mysql" ]
0 commit comments