Skip to content

Commit

Permalink
Merge pull request #541 from mgeisler/unexpected-cfgs
Browse files Browse the repository at this point in the history
Fix compilation errors since last build
  • Loading branch information
mgeisler authored Jun 28, 2024
2 parents 39914e0 + 6aef5c4 commit b7b0965
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
name: Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
Expand Down Expand Up @@ -66,6 +67,7 @@ jobs:
name: Minimum supported Rust version
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- no default features
Expand All @@ -75,8 +77,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust 1.56 # MSRV from Cargo.toml
run: rustup default 1.56
- name: Find Minimum Support Rust Version
run: |
echo "msrv=$(egrep 'rust-version\s*=\s*"([0-9.]+)"' Cargo.toml | cut -d '"' -f 2)" >> "$GITHUB_ENV"
- name: Install Rust ${{ env.msrv }} (MSRV)
run: rustup default $msrv

- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -124,6 +130,7 @@ jobs:
name: Fuzz test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fuzz-target:
- fill_first_fit
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
name: Generate coverage
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- no-default-features
Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["text", "formatting", "wrap", "typesetting", "hyphenation"]
categories = ["text-processing", "command-line-interface"]
license = "MIT"
edition = "2021"
rust-version = "1.56"
rust-version = "1.62"
exclude = [".github/", ".gitignore", "benchmarks/", "examples/", "fuzz/", "images/"]

[[example]]
Expand All @@ -29,6 +29,9 @@ all-features = true
[features]
default = ["unicode-linebreak", "unicode-width", "smawk"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }

[dependencies]
hyphenation = { version = "0.8.4", optional = true, features = ["embed_en-us"] }
smawk = { version = "0.3.1", optional = true }
Expand Down

0 comments on commit b7b0965

Please sign in to comment.