Skip to content

Commit 19c0713

Browse files
committed
[WIP] support smol
1 parent d3ed228 commit 19c0713

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/main-ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ jobs:
5959
with:
6060
command: test
6161
args: --all --no-default-features --features async-std-runtime,all-transport
62+
- name: Test smol version
63+
uses: actions-rs/cargo@v1
64+
with:
65+
command: test
66+
args: --all --no-default-features --features smol-runtime,all-transport
6267

6368
fmt:
6469
name: Formatting

Cargo.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rust-version = "1.62.0"
1212
default = ["tokio-runtime", "all-transport"]
1313
tokio-runtime = ["tokio", "tokio-util"]
1414
async-std-runtime = ["async-std"]
15+
smol-runtime = ["smol"]
1516
all-transport = ["ipc-transport", "tcp-transport"]
1617
ipc-transport = []
1718
tcp-transport = []
@@ -26,13 +27,17 @@ async-trait = "0.1"
2627
parking_lot = "0.12"
2728
rand = "0.8"
2829
bytes = "1"
30+
smol = { version = "0.3.2", optional = true }
2931
tokio = { version = "1", features = ["full"], optional = true }
3032
tokio-util = { version = "0.7", features = ["compat"], optional = true }
3133
num-traits = "0.2"
3234
dashmap = "5"
3335
crossbeam-queue = "0.3"
3436
uuid = { version = "1", features = ["v4"] }
35-
regex = { version = "1", default-features = false, features = ["std", "unicode-perl"] }
37+
regex = { version = "1", default-features = false, features = [
38+
"std",
39+
"unicode-perl",
40+
] }
3641
once_cell = "1"
3742
log = "0.4"
3843
asynchronous-codec = "0.7"

0 commit comments

Comments
 (0)