From d82a1f9d0f0896dc0c92251ce49052a2e3c058fb Mon Sep 17 00:00:00 2001 From: "Gordon P. Hemsley" Date: Thu, 8 Dec 2022 23:00:41 -0500 Subject: [PATCH 1/2] Adjust phf version requirement --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5819543c..56c3b4a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ cssparser-macros = {path = "./macros", version = "0.6"} dtoa-short = "0.3" itoa = "1.0" matches = "0.1" -phf = {version = ">=0.8,<=0.11", features = ["macros"]} +phf = {version = "~0.9", features = ["macros"]} serde = {version = "1.0", optional = true} smallvec = "1.0" From 71a64ebc58b776eb33ffc3bbbcc21a78e5df3c4b Mon Sep 17 00:00:00 2001 From: "Gordon P. Hemsley" Date: Thu, 8 Dec 2022 23:01:07 -0500 Subject: [PATCH 2/2] Bump MSRV to 1.56 --- .github/workflows/main.yml | 6 +----- Cargo.toml | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a12a2523..cc7d0bdc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: - nightly - beta - stable - - 1.40.0 + - 1.56.0 features: - - --features dummy_match_byte @@ -35,10 +35,6 @@ jobs: toolchain: ${{ matrix.toolchain }} override: true - - name: Downgrade phf to a version compatible with the MSRV - run: cargo update --package phf --precise 0.10.1 - if: matrix.toolchain == '1.40.0' - - name: Cargo build run: cargo build ${{ matrix.features }} diff --git a/Cargo.toml b/Cargo.toml index 56c3b4a9..0ab0f60f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ keywords = ["css", "syntax", "parser"] license = "MPL-2.0" build = "build.rs" edition = "2018" +rust-version = "1.56" exclude = ["src/css-parsing-tests/**", "src/big-data-url.css"]