Skip to content

Commit 0dcdb17

Browse files
committed
add tokio_unstable cfg in Cargo.toml and GH actions
1 parent 119dc57 commit 0dcdb17

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/nemesis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: github.repository == 'tursodatabase/libsql'
1919
name: Run Nemesis Tests
2020
env:
21-
RUSTFLAGS: -D warnings
21+
RUSTFLAGS: -D warnings --cfg tokio_unstable
2222
steps:
2323
- uses: hecrj/setup-rust-action@v2
2424

.github/workflows/rust.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
name: Run Checks
2525
env:
26-
RUSTFLAGS: -D warnings
26+
RUSTFLAGS: -D warnings --cfg tokio_unstable
2727
steps:
2828
- uses: hecrj/setup-rust-action@v2
2929

@@ -80,15 +80,15 @@ jobs:
8080
- uses: taiki-e/install-action@cargo-udeps
8181
- uses: Swatinem/rust-cache@v2
8282
- run: cargo +nightly hack udeps -p libsql --each-feature
83-
- run: RUSTFLAGS="-D warnings" cargo check -p libsql --no-default-features --features core
84-
- run: RUSTFLAGS="-D warnings" cargo check -p libsql --no-default-features --features replication
85-
- run: RUSTFLAGS="-D warnings" cargo check -p libsql --no-default-features --features remote
83+
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features core
84+
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features replication
85+
- run: RUSTFLAGS="-D warnings --cfg tokio_unstable" cargo check -p libsql --no-default-features --features remote
8686

8787
test:
8888
runs-on: ubuntu-latest
8989
name: Run Tests
9090
env:
91-
RUSTFLAGS: -D warnings
91+
RUSTFLAGS: -D warnings --cfg tokio_unstable
9292
steps:
9393
- uses: hecrj/setup-rust-action@v2
9494

libsql-server/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ default-run = "sqld"
88
name = "sqld"
99
path = "src/main.rs"
1010

11+
[build]
12+
rustflags = ["--cfg", "tokio_unstable"]
13+
1114
[dependencies]
1215
anyhow = "1.0.66"
1316
async-lock = "2.6.0"
@@ -116,6 +119,7 @@ vergen = { version = "8", features = ["build", "git", "gitcl"] }
116119

117120
[features]
118121
default = []
122+
tokio-metrics = []
119123
debug-tools = ["console-subscriber", "rusqlite/trace", "tokio/tracing"]
120124
wasm-udfs = ["rusqlite/libsql-wasm-experimental"]
121125
unix-excl-vfs = ["libsql-sys/unix-excl-vfs"]

0 commit comments

Comments
 (0)