diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b083c3e6..9da582a6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,10 @@ jobs: toolchain: ${{ matrix.toolchain }} override: true + - name: Downgrade phf to a version compatible with the MSRV + run: cargo update --package phf:0.11.0 --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 7c0b5aff..a1032966 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.10", features = ["macros"]} +phf = {version = ">=0.8,<=0.11", features = ["macros"]} serde = {version = "1.0", optional = true} smallvec = "1.0"