Skip to content

Commit

Permalink
update github workflow and update MSRV, dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Aug 25, 2024
1 parent e02bac3 commit 53985f3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI

on: [push, pull_request]
on:
push:
branches: [master]
pull_request:

jobs:
test:
Expand All @@ -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
21 changes: 12 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.41.1
1.58.1

0 comments on commit 53985f3

Please sign in to comment.