diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b26ac5..a789fd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [master] + pull_request: jobs: test: @@ -9,17 +12,15 @@ jobs: strategy: matrix: toolchain: - - 1.41.1 + - 1.58.1 - stable # - nightly steps: - - name: Checkout the source code - uses: actions/checkout@master - - name: Install Rust - run: | - rustup toolchain update --no-self-update ${{ matrix.toolchain }} - rustup default ${{ matrix.toolchain }} - - name: Build - run: cargo build --all - - name: Test - run: cargo test --all + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ matrix.toolchain }} + components: clippy + - run: cargo clippy --lib --examples --tests + - run: cargo build--lib --examples --tests + - run: cargo test diff --git a/Cargo.toml b/Cargo.toml index 4563d76..d1957a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,22 +10,25 @@ keywords = ["pickle", "python", "serde", "serialization"] edition = "2018" [dependencies] -serde = "1.0.104" -byteorder = "1.3.2" -num-bigint = "0.4.0" -num-traits = "0.2.10" -iter-read = "0.3.0" -criterion = { version = "0.3.5", optional = true } +serde = "1.0.209" +byteorder = "=1.4.3" # for 1.58.1 +num-bigint = "0.4.4" +num-traits = "0.2.18" +iter-read = "1.1.0" +criterion = { version = "0.4", optional = true } [features] -criterion-bench = [ "criterion" ] +criterion-bench = ["criterion"] # For the example binary and the test suite. [dev-dependencies] -serde_derive = "1.0.104" -serde_json = "1.0.44" +serde_derive = "1.0.209" +serde_json = "1.0.127" rand = "0.7" quickcheck = "0.9.0" +# for 1.58.1 +log = "=0.4.18" +ppv-lite86 = "=0.2.17" [[bench]] name = "benchmark" diff --git a/README.md b/README.md index cf9269c..387c3f0 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,13 @@ This crate works with Cargo and can be found on ```toml [dependencies] serde = "1.0" -serde-pickle = "1.0" +serde-pickle = "1.1" ``` Requirements ============ -Minimum supported Rust version is 1.41.1. +Minimum supported Rust version is 1.58.1. Usage ===== diff --git a/rust-toolchain b/rust-toolchain index f86fb9c..69478d1 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.41.1 +1.58.1