From 74bf971080e8392a030d3d4c72630994fd9d69b6 Mon Sep 17 00:00:00 2001 From: Ashley Anderson Date: Tue, 5 Jul 2022 22:43:06 -0400 Subject: [PATCH 1/2] Pin `plotters` to preserve MSRV --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 39881443..d0f6a7e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,6 +51,10 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.61" rayon = "1.0.2" widestring = "0.5.1" +# plotters via criterion, 0.3.2 requires edition: 2021 (Rust 1.56) +plotters = { version = "=0.3.1", default-features = false } +plotters-backend = { version = "=0.3.2", default-features = false } +plotters-svg = { version = "=0.3.1", default-features = false } [build-dependencies] pyo3-build-config = { path = "pyo3-build-config", version = "0.16.5", features = ["resolve-config"] } From b39871c4ac1acac7755dfd4305242a6951cb91d7 Mon Sep 17 00:00:00 2001 From: Ashley Anderson Date: Wed, 6 Jul 2022 00:29:58 -0400 Subject: [PATCH 2/2] Use proper method for pinning MSRV minimal package versions --- .github/workflows/ci.yml | 3 +++ Cargo.toml | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2eae20cf..565a9317 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -186,6 +186,9 @@ jobs: for PROJ in ${PROJECTS[@]}; do cargo update --manifest-path "$PROJ/Cargo.toml" -p parking_lot --precise 0.11.0 done + cargo update -p plotters --precise 0.3.1 + cargo update -p plotters-svg --precise 0.3.1 + cargo update -p plotters-backend --precise 0.3.2 - name: Build docs run: cargo doc --no-deps --no-default-features --features "full ${{ matrix.extra_features }}" diff --git a/Cargo.toml b/Cargo.toml index d0f6a7e2..39881443 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,10 +51,6 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.61" rayon = "1.0.2" widestring = "0.5.1" -# plotters via criterion, 0.3.2 requires edition: 2021 (Rust 1.56) -plotters = { version = "=0.3.1", default-features = false } -plotters-backend = { version = "=0.3.2", default-features = false } -plotters-svg = { version = "=0.3.1", default-features = false } [build-dependencies] pyo3-build-config = { path = "pyo3-build-config", version = "0.16.5", features = ["resolve-config"] }