diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcc193bb..6c642cf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,10 +18,10 @@ jobs: RUSTFLAGS: --deny warnings steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Cache id: rust-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/bin/ @@ -32,13 +32,13 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }} - name: Check for forbidden words - run: "! grep --include='*.rs' -RE 'to_be_bytes|from_be_bytes|dbg!' ." if: runner.os != 'Windows' + run: "! grep --include='*.rs' -RE 'to_be_bytes|from_be_bytes|dbg!' ." - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - uses: actions-rs/toolchain@v1 with: @@ -73,8 +73,8 @@ jobs: run: cargo build --all-targets --all-features - name: Fuzzer - run: just fuzz_ci if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos') + run: just fuzz_ci - name: Run tests run: just build test diff --git a/Cargo.toml b/Cargo.toml index 981da7f1..e17988c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,11 +15,11 @@ exclude = ["fuzz/"] crate-type = ["cdylib", "rlib"] [build-dependencies] -pyo3-build-config = { version = "0.20.0", optional = true } +pyo3-build-config = { version = "0.22.0", optional = true } [dependencies] log = { version = "0.4.17", optional = true } -pyo3 = { version = "0.20.0", features=["extension-module", "abi3-py37"], optional = true } +pyo3 = { version = "0.22.0", features=["extension-module", "abi3-py37"], optional = true } [target.'cfg(unix)'.dependencies] libc = "0.2.104" @@ -36,18 +36,18 @@ serde = { version = "1.0", features = ["derive"] } bincode = "1.3.3" walkdir = "2.5.0" byte-unit = "=5.0.4" +fastrand = "2.0.0" +sled = "0.34.7" +libc = "0.2.99" -# Just benchmarking dependencies +# Just benchmarking dependencies, which don't build on wasi [target.'cfg(not(target_os = "wasi"))'.dev-dependencies] # Pinned to compatibility with MSRV ctrlc = "=3.2.3" -fastrand = "2.0.0" heed = "0.20" sanakirja = "=1.4.1" sanakirja-core = "=1.4.1" -sled = "0.34.7" rocksdb = "0.22.0" -libc = "0.2.99" comfy-table = "7.0.1" [target.'cfg(target_os = "linux")'.dev-dependencies] diff --git a/src/python.rs b/src/python.rs index afb86b94..dbb1a691 100644 --- a/src/python.rs +++ b/src/python.rs @@ -1,6 +1,6 @@ use pyo3::prelude::*; #[pymodule] -pub fn redb(_py: Python, _m: &PyModule) -> PyResult<()> { +pub fn redb(_m: &Bound<'_, PyModule>) -> PyResult<()> { Ok(()) }