Skip to content

Commit 1a96483

Browse files
committed
chore: update to my own version
1 parent 5cc91f8 commit 1a96483

1 file changed

Lines changed: 123 additions & 26 deletions

File tree

Cargo.toml

Lines changed: 123 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ members = [
2727
]
2828

2929
[workspace.package]
30-
version = "0.9.0-alpha.1"
30+
version = "0.9.0-alpha.1.zenas"
3131
license = "MIT OR Apache-2.0"
3232
# TODO: upgrade to edition 2024 (after merging all pending PRs)
3333
edition = "2021"
@@ -64,10 +64,20 @@ default = ["any", "macros", "migrate", "json"]
6464

6565
derive = ["sqlx-macros/derive"]
6666
macros = ["derive", "sqlx-macros/macros"]
67-
migrate = ["sqlx-core/migrate", "sqlx-macros?/migrate", "sqlx-mysql?/migrate", "sqlx-postgres?/migrate", "sqlx-sqlite?/migrate"]
67+
migrate = [
68+
"sqlx-core/migrate",
69+
"sqlx-macros?/migrate",
70+
"sqlx-mysql?/migrate",
71+
"sqlx-postgres?/migrate",
72+
"sqlx-sqlite?/migrate",
73+
]
6874

6975
# Enable parsing of `sqlx.toml` for configuring macros and migrations.
70-
sqlx-toml = ["sqlx-core/sqlx-toml", "sqlx-macros?/sqlx-toml", "sqlx-sqlite?/sqlx-toml"]
76+
sqlx-toml = [
77+
"sqlx-core/sqlx-toml",
78+
"sqlx-macros?/sqlx-toml",
79+
"sqlx-sqlite?/sqlx-toml",
80+
]
7181

7282
# intended mainly for CI and docs
7383
all-databases = ["mysql", "sqlite", "postgres", "any"]
@@ -82,29 +92,46 @@ _unstable-all-types = [
8292
"mac_address",
8393
"uuid",
8494
"bit-vec",
85-
"bstr"
95+
"bstr",
8696
]
8797

8898
# Render documentation that wouldn't otherwise be shown (e.g. `sqlx_core::config`).
8999
_unstable-docs = [
90100
"all-databases",
91101
"_unstable-all-types",
92-
"sqlx-sqlite/_unstable-docs"
102+
"sqlx-sqlite/_unstable-docs",
93103
]
94104

95105
# Base runtime features without TLS
96-
runtime-async-global-executor = ["_rt-async-global-executor", "sqlx-core/_rt-async-global-executor", "sqlx-macros?/_rt-async-global-executor"]
97-
runtime-async-std = ["_rt-async-std", "sqlx-core/_rt-async-std", "sqlx-macros?/_rt-async-std"]
106+
runtime-async-global-executor = [
107+
"_rt-async-global-executor",
108+
"sqlx-core/_rt-async-global-executor",
109+
"sqlx-macros?/_rt-async-global-executor",
110+
]
111+
runtime-async-std = [
112+
"_rt-async-std",
113+
"sqlx-core/_rt-async-std",
114+
"sqlx-macros?/_rt-async-std",
115+
]
98116
runtime-smol = ["_rt-smol", "sqlx-core/_rt-smol", "sqlx-macros?/_rt-smol"]
99117
runtime-tokio = ["_rt-tokio", "sqlx-core/_rt-tokio", "sqlx-macros?/_rt-tokio"]
100118

101119
# TLS features
102120
tls-native-tls = ["sqlx-core/_tls-native-tls", "sqlx-macros?/_tls-native-tls"]
103121
tls-rustls = ["tls-rustls-ring"] # For backwards compatibility
104-
tls-rustls-aws-lc-rs = ["sqlx-core/_tls-rustls-aws-lc-rs", "sqlx-macros?/_tls-rustls-aws-lc-rs"]
122+
tls-rustls-aws-lc-rs = [
123+
"sqlx-core/_tls-rustls-aws-lc-rs",
124+
"sqlx-macros?/_tls-rustls-aws-lc-rs",
125+
]
105126
tls-rustls-ring = ["tls-rustls-ring-webpki"] # For backwards compatibility
106-
tls-rustls-ring-webpki = ["sqlx-core/_tls-rustls-ring-webpki", "sqlx-macros?/_tls-rustls-ring-webpki"]
107-
tls-rustls-ring-native-roots = ["sqlx-core/_tls-rustls-ring-native-roots", "sqlx-macros?/_tls-rustls-ring-native-roots"]
127+
tls-rustls-ring-webpki = [
128+
"sqlx-core/_tls-rustls-ring-webpki",
129+
"sqlx-macros?/_tls-rustls-ring-webpki",
130+
]
131+
tls-rustls-ring-native-roots = [
132+
"sqlx-core/_tls-rustls-ring-native-roots",
133+
"sqlx-macros?/_tls-rustls-ring-native-roots",
134+
]
108135

109136
# No-op feature used by the workflows to compile without TLS enabled. Not meant for general use.
110137
tls-none = []
@@ -117,14 +144,28 @@ _rt-tokio = []
117144
_sqlite = []
118145

119146
# database
120-
any = ["sqlx-core/any", "sqlx-mysql?/any", "sqlx-postgres?/any", "sqlx-sqlite?/any"]
147+
any = [
148+
"sqlx-core/any",
149+
"sqlx-mysql?/any",
150+
"sqlx-postgres?/any",
151+
"sqlx-sqlite?/any",
152+
]
121153
postgres = ["sqlx-postgres", "sqlx-macros?/postgres"]
122154
mysql = ["sqlx-mysql", "sqlx-macros?/mysql"]
123-
sqlite = ["sqlite-bundled", "sqlite-deserialize", "sqlite-load-extension", "sqlite-unlock-notify"]
155+
sqlite = [
156+
"sqlite-bundled",
157+
"sqlite-deserialize",
158+
"sqlite-load-extension",
159+
"sqlite-unlock-notify",
160+
]
124161

125162
# SQLite base features
126163
sqlite-bundled = ["_sqlite", "sqlx-sqlite/bundled", "sqlx-macros?/sqlite"]
127-
sqlite-unbundled = ["_sqlite", "sqlx-sqlite/unbundled", "sqlx-macros?/sqlite-unbundled"]
164+
sqlite-unbundled = [
165+
"_sqlite",
166+
"sqlx-sqlite/unbundled",
167+
"sqlx-macros?/sqlite-unbundled",
168+
]
128169

129170
# SQLite features using conditionally compiled APIs
130171
# Note: these assume `sqlite-bundled` or `sqlite-unbundled` is also enabled
@@ -136,7 +177,10 @@ sqlite-deserialize = ["sqlx-sqlite/deserialize"]
136177
# Enable `SqliteConnectOptions::extension()` and `::extension_with_entrypoint()`.
137178
# Also required to use `drivers.sqlite.unsafe-load-extensions` from `sqlx.toml`.
138179
# Cannot be used with `-DSQLITE_OMIT_LOAD_EXTENSION`
139-
sqlite-load-extension = ["sqlx-sqlite/load-extension", "sqlx-macros?/sqlite-load-extension"]
180+
sqlite-load-extension = [
181+
"sqlx-sqlite/load-extension",
182+
"sqlx-macros?/sqlite-load-extension",
183+
]
140184

141185
# Enables `sqlite3_preupdate_hook`
142186
# Requires `-DSQLITE_ENABLE_PREUPDATE_HOOK` (set automatically with `sqlite-bundled`)
@@ -147,17 +191,63 @@ sqlite-preupdate-hook = ["sqlx-sqlite/preupdate-hook"]
147191
sqlite-unlock-notify = ["sqlx-sqlite/unlock-notify"]
148192

149193
# types
150-
json = ["sqlx-core/json", "sqlx-macros?/json", "sqlx-mysql?/json", "sqlx-postgres?/json", "sqlx-sqlite?/json"]
194+
json = [
195+
"sqlx-core/json",
196+
"sqlx-macros?/json",
197+
"sqlx-mysql?/json",
198+
"sqlx-postgres?/json",
199+
"sqlx-sqlite?/json",
200+
]
151201

152-
bigdecimal = ["sqlx-core/bigdecimal", "sqlx-macros?/bigdecimal", "sqlx-mysql?/bigdecimal", "sqlx-postgres?/bigdecimal"]
153-
bit-vec = ["sqlx-core/bit-vec", "sqlx-macros?/bit-vec", "sqlx-postgres?/bit-vec"]
154-
chrono = ["sqlx-core/chrono", "sqlx-macros?/chrono", "sqlx-mysql?/chrono", "sqlx-postgres?/chrono", "sqlx-sqlite?/chrono"]
202+
bigdecimal = [
203+
"sqlx-core/bigdecimal",
204+
"sqlx-macros?/bigdecimal",
205+
"sqlx-mysql?/bigdecimal",
206+
"sqlx-postgres?/bigdecimal",
207+
]
208+
bit-vec = [
209+
"sqlx-core/bit-vec",
210+
"sqlx-macros?/bit-vec",
211+
"sqlx-postgres?/bit-vec",
212+
]
213+
chrono = [
214+
"sqlx-core/chrono",
215+
"sqlx-macros?/chrono",
216+
"sqlx-mysql?/chrono",
217+
"sqlx-postgres?/chrono",
218+
"sqlx-sqlite?/chrono",
219+
]
155220
ipnet = ["sqlx-core/ipnet", "sqlx-macros?/ipnet", "sqlx-postgres?/ipnet"]
156-
ipnetwork = ["sqlx-core/ipnetwork", "sqlx-macros?/ipnetwork", "sqlx-postgres?/ipnetwork"]
157-
mac_address = ["sqlx-core/mac_address", "sqlx-macros?/mac_address", "sqlx-postgres?/mac_address"]
158-
rust_decimal = ["sqlx-core/rust_decimal", "sqlx-macros?/rust_decimal", "sqlx-mysql?/rust_decimal", "sqlx-postgres?/rust_decimal"]
159-
time = ["sqlx-core/time", "sqlx-macros?/time", "sqlx-mysql?/time", "sqlx-postgres?/time", "sqlx-sqlite?/time"]
160-
uuid = ["sqlx-core/uuid", "sqlx-macros?/uuid", "sqlx-mysql?/uuid", "sqlx-postgres?/uuid", "sqlx-sqlite?/uuid"]
221+
ipnetwork = [
222+
"sqlx-core/ipnetwork",
223+
"sqlx-macros?/ipnetwork",
224+
"sqlx-postgres?/ipnetwork",
225+
]
226+
mac_address = [
227+
"sqlx-core/mac_address",
228+
"sqlx-macros?/mac_address",
229+
"sqlx-postgres?/mac_address",
230+
]
231+
rust_decimal = [
232+
"sqlx-core/rust_decimal",
233+
"sqlx-macros?/rust_decimal",
234+
"sqlx-mysql?/rust_decimal",
235+
"sqlx-postgres?/rust_decimal",
236+
]
237+
time = [
238+
"sqlx-core/time",
239+
"sqlx-macros?/time",
240+
"sqlx-mysql?/time",
241+
"sqlx-postgres?/time",
242+
"sqlx-sqlite?/time",
243+
]
244+
uuid = [
245+
"sqlx-core/uuid",
246+
"sqlx-macros?/uuid",
247+
"sqlx-mysql?/uuid",
248+
"sqlx-postgres?/uuid",
249+
"sqlx-sqlite?/uuid",
250+
]
161251
regexp = ["sqlx-sqlite?/regexp"]
162252
bstr = ["sqlx-core/bstr"]
163253

@@ -179,11 +269,16 @@ sqlx = { version = "=0.9.0-alpha.1", path = ".", default-features = false }
179269
# These are optional unless enabled in a workspace crate.
180270
bigdecimal = "0.4.0"
181271
bit-vec = "0.6.3"
182-
chrono = { version = "0.4.34", default-features = false, features = ["std", "clock"] }
272+
chrono = { version = "0.4.34", default-features = false, features = [
273+
"std",
274+
"clock",
275+
] }
183276
ipnet = "2.3.0"
184277
ipnetwork = "0.21.1"
185278
mac_address = "1.1.5"
186-
rust_decimal = { version = "1.26.1", default-features = false, features = ["std"] }
279+
rust_decimal = { version = "1.26.1", default-features = false, features = [
280+
"std",
281+
] }
187282
time = { version = "0.3.36", features = ["formatting", "parsing", "macros"] }
188283
uuid = "1.1.2"
189284

@@ -221,7 +316,9 @@ sqlx-sqlite = { workspace = true, optional = true }
221316
[dev-dependencies]
222317
anyhow = "1.0.52"
223318
time_ = { version = "0.3.2", package = "time" }
224-
futures-util = { version = "0.3.19", default-features = false, features = ["alloc"] }
319+
futures-util = { version = "0.3.19", default-features = false, features = [
320+
"alloc",
321+
] }
225322
env_logger = "0.11"
226323
async-std = { workspace = true, features = ["attributes"] }
227324
tokio = { version = "1.15.0", features = ["full"] }

0 commit comments

Comments
 (0)