Skip to content

Commit dd053e1

Browse files
Merge branch 'temp'
# Conflicts: # .github/workflows/sqlx.yml
2 parents e474be6 + 4eadb24 commit dd053e1

File tree

19 files changed

+679
-199
lines changed

19 files changed

+679
-199
lines changed

Cargo.lock

Lines changed: 100 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ authors = [
3535
"Chloe Ross <orangesnowfox@gmail.com>",
3636
"Daniel Akhterov <akhterovd@gmail.com>",
3737
]
38-
# TODO: enable this for 0.9.0
39-
# rust-version = "1.80.0"
38+
rust-version = "1.80.0"
4039

4140
[package]
4241
name = "sqlx"
@@ -76,7 +75,9 @@ _unstable-all-types = [
7675
]
7776

7877
# Base runtime features without TLS
78+
runtime-async-global-executor = ["_rt-async-global-executor", "sqlx-core/_rt-async-global-executor", "sqlx-macros?/_rt-async-global-executor"]
7979
runtime-async-std = ["_rt-async-std", "sqlx-core/_rt-async-std", "sqlx-macros?/_rt-async-std"]
80+
runtime-smol = ["_rt-smol", "sqlx-core/_rt-smol", "sqlx-macros?/_rt-smol"]
8081
runtime-tokio = ["_rt-tokio", "sqlx-core/_rt-tokio", "sqlx-macros?/_rt-tokio"]
8182

8283
# TLS features
@@ -92,14 +93,22 @@ tls-none = []
9293

9394
# Legacy Runtime + TLS features
9495

96+
runtime-async-global-executor-native-tls = ["runtime-async-global-executor", "tls-native-tls"]
97+
runtime-async-global-executor-rustls = ["runtime-async-global-executor", "tls-rustls-ring"]
98+
9599
runtime-async-std-native-tls = ["runtime-async-std", "tls-native-tls"]
96100
runtime-async-std-rustls = ["runtime-async-std", "tls-rustls-ring"]
97101

102+
runtime-smol-native-tls = ["runtime-smol", "tls-native-tls"]
103+
runtime-smol-rustls = ["runtime-smol", "tls-rustls-ring"]
104+
98105
runtime-tokio-native-tls = ["runtime-tokio", "tls-native-tls"]
99106
runtime-tokio-rustls = ["runtime-tokio", "tls-rustls-ring"]
100107

101108
# for conditional compilation
109+
_rt-async-global-executor = []
102110
_rt-async-std = []
111+
_rt-smol = []
103112
_rt-tokio = []
104113
_sqlite = []
105114

@@ -151,12 +160,22 @@ time = { version = "0.3.36", features = ["formatting", "parsing", "macros"] }
151160
uuid = "1.1.2"
152161

153162
# Common utility crates
163+
cfg-if = "1.0.0"
154164
dotenvy = { version = "0.15.0", default-features = false }
155165

156166
# Runtimes
167+
[workspace.dependencies.async-global-executor]
168+
version = "3.1"
169+
default-features = false
170+
features = ["async-io"]
171+
157172
[workspace.dependencies.async-std]
158173
version = "1.12"
159174

175+
[workspace.dependencies.smol]
176+
version = "2.0"
177+
default-features = false
178+
160179
[workspace.dependencies.tokio]
161180
version = "1"
162181
features = ["time", "net", "sync", "fs", "io-util", "rt"]

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Note: should NOT increase during a minor/patch release cycle
22
[toolchain]
3-
channel = "1.78"
3+
channel = "1.80"
44
profile = "minimal"

sqlx-core/Cargo.toml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ any = []
1919
json = ["serde", "serde_json"]
2020

2121
# for conditional compilation
22-
_rt-async-std = ["async-std", "async-io"]
22+
_rt-async-global-executor = [
23+
"async-global-executor",
24+
"async-io-global-executor",
25+
"async-lock",
26+
"async-net",
27+
]
28+
_rt-async-std = ["async-std", "async-io-std"]
29+
_rt-smol = ["smol"]
2330
_rt-tokio = ["tokio", "tokio-stream"]
2431
_tls-native-tls = ["native-tls"]
2532
_tls-rustls-aws-lc-rs = ["_tls-rustls", "rustls/aws-lc-rs", "webpki-roots"]
@@ -33,7 +40,9 @@ offline = ["serde", "either/serde"]
3340

3441
[dependencies]
3542
# Runtimes
43+
async-global-executor = { workspace = true, optional = true }
3644
async-std = { workspace = true, optional = true }
45+
smol = { workspace = true, optional = true }
3746
tokio = { workspace = true, optional = true }
3847

3948
# TLS
@@ -52,9 +61,13 @@ ipnetwork = { workspace = true, optional = true }
5261
mac_address = { workspace = true, optional = true }
5362
uuid = { workspace = true, optional = true }
5463

55-
async-io = { version = "1.9.0", optional = true }
64+
async-io-global-executor = { package = "async-io", version = "2.2", optional = true }
65+
async-io-std = { package = "async-io", version = "1.9.0", optional = true }
66+
async-lock = { version = "3.4.0", optional = true }
67+
async-net = { package = "async-net", version = "2.0.0", optional = true }
5668
base64 = { version = "0.22.0", default-features = false, features = ["std"] }
5769
bytes = "1.1.0"
70+
cfg-if = { workspace = true }
5871
chrono = { version = "0.4.34", default-features = false, features = ["clock"], optional = true }
5972
crc = { version = "3", optional = true }
6073
crossbeam-queue = "0.3.2"

0 commit comments

Comments
 (0)