Skip to content

Commit 4e321ed

Browse files
committed
chore: upgrade criterion to 0.7
1 parent 4bff765 commit 4e321ed

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
toolchain: 1.89.0
1717
components: rustfmt
18-
override: true
1918
- name: Check formatting
2019
run: |
2120
cargo fmt --all -- --check
@@ -32,9 +31,8 @@ jobs:
3231
uses: dtolnay/rust-toolchain@stable
3332
with:
3433
toolchain: 1.89.0
35-
components: clippy
36-
override: true
37-
- run: sudo apt update && sudo apt install -y libclang-dev
34+
components: clippy rustfmt
35+
- run: sudo apt update && sudo apt install -y libclang-dev libbz2-dev
3836
- name: Run clippy
3937
run: |
4038
make clippy
@@ -43,7 +41,7 @@ jobs:
4341
name: valgrind
4442
runs-on: ubuntu-latest
4543
steps:
46-
- run: sudo apt update && sudo apt install -y valgrind libclang-dev
44+
- run: sudo apt update && sudo apt install -y valgrind libclang-dev libbz2-dev
4745
- name: Checkout sources
4846
uses: actions/checkout@v6
4947
with:
@@ -90,23 +88,18 @@ jobs:
9088
with:
9189
toolchain: 1.89.0
9290
target: ${{ matrix.target }}
93-
profile: minimal
94-
override: true
9591
- name: Remove msys64 # Workaround to resolve link error with C:\msys64\mingw64\bin\libclang.dll
9692
if: runner.os == 'Windows'
9793
run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
9894
- name: Install dependencies
9995
if: runner.os == 'Windows'
100-
run: choco install llvm -y
101-
- name: Install libclang-dev
96+
run: vcpkg install llvm zstd bzip2 zlib
97+
- name: Install dependencies (macOS)
98+
if: runner.os == 'macOS'
99+
run: brew install llvm lld zstd bzip2 zlib
100+
- name: Install dependencies (Linux)
102101
if: runner.os == 'Linux'
103-
run: sudo apt install libclang-dev
104-
- name: Install jemalloc
105-
if: runner.os == 'Linux'
106-
run: sudo apt install libjemalloc-dev
107-
- name: Install liburing
108-
if: runner.os == 'Linux'
109-
run: sudo apt install liburing-dev
102+
run: sudo apt-get update && sudo apt-get install -y libclang-dev libjemalloc-dev liburing-dev libbz2-dev
110103
- name: Debug librocksdb-sys tests
111104
if: runner.os == 'Linux' || runner.os == 'Windows'
112105
run: clang --version && env

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ serde = { version = "1", features = ["derive"], optional = true }
4141

4242
[dev-dependencies]
4343
trybuild = "1.0"
44-
criterion = "0.5"
44+
criterion = "0.7"
4545

4646
[[bench]]
4747
name = "transaction"

librocksdb-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ uuid = { version = "1.0", features = ["v4"] }
5050

5151
[build-dependencies]
5252
cc = { version = "1.0", features = ["parallel"] }
53-
bindgen = { version = "0.72.1", default-features = false }
53+
bindgen = { version = "0.72.1" }
5454
glob = "0.3.2"
5555
pkg-config = "0.3"
5656
rust-ini = "0.21"

0 commit comments

Comments
 (0)