Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation errors since last build #541

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading