Skip to content

Commit 65da46e

Browse files
committed
smarter build check and dev deps
1 parent 94a3abf commit 65da46e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: dtolnay/rust-toolchain@stable
2727
with:
2828
toolchain: stable
29-
- run: cargo build
29+
- run: cargo build --all --all-targets --all-features
3030
lint:
3131
runs-on: ubuntu-latest
3232
concurrency:

Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ clap = { version = "4.5.49", default-features = true, features = [
4444
"derive",
4545
"env",
4646
] }
47+
tokio = { version = "1.48.0", default-features = false, features = [
48+
"macros",
49+
"rt-multi-thread",
50+
"time",
51+
] }
52+
53+
[target.'cfg(not(target_env = "msvc"))'.dev-dependencies]
4754
tikv-jemalloc-sys = { version = "0.6.1", default-features = false }
4855
tikv-jemallocator = { version = "0.6.1", features = [
4956
# https://github.com/tikv/jemallocator/blob/master/jemalloc-sys/README.md#features
@@ -57,10 +64,6 @@ tikv-jemallocator = { version = "0.6.1", features = [
5764
# https://github.com/tikv/jemallocator/blob/0.6.1/jemalloc-sys/README.md?plain=1#L91.
5865
"override_allocator_on_supported_platforms",
5966
] }
60-
tokio = { version = "1.48.0", default-features = false, features = [
61-
"macros",
62-
"rt-multi-thread",
63-
] }
6467

6568
[features]
6669
default = ["pprof"]

0 commit comments

Comments
 (0)