Skip to content

Commit

Permalink
build: change MSRV to 1.48
Browse files Browse the repository at this point in the history
1.48 is the version packaged in Debian 11.

Also fix issue with msrv check. `--no-dev-deps` from `cargo hack` is
necessary to ignore dev dependencies.

Ref: https://repology.org/project/rust/versions
  • Loading branch information
Aetf committed Apr 26, 2024
1 parent 155d338 commit 9223286
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --rust-version --workspace --lib --ignore-private
- run: cargo hack --feature-powerset --no-dev-deps --rust-version check --workspace

features:
name: Features ${{ matrix.toolchain }} ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "unicode-truncate"
version = "0.2.0"
authors = ["Aetf <[email protected]>"]
edition = "2018"
rust-version = "1.68.2"
rust-version = "1.48"

homepage = "https://github.com/Aetf/unicode-truncate"
repository = "https://github.com/Aetf/unicode-truncate"
Expand All @@ -17,14 +17,6 @@ exclude = [
"benches/data/*",
]

# Improve benchmark consistency
[profile.bench]
codegen-units = 1
lto = true

[badges]
travis-ci = { repository = "Aetf/unicode-truncate" }

[dependencies]
itertools = { version = "0.12.1", default-features = false }
unicode-width = "0.1"
Expand All @@ -46,3 +38,9 @@ required-features = ["std"]
[[bench]]
name = "benchmark"
harness = false

# Improve benchmark consistency
[profile.bench]
codegen-units = 1
lto = true

0 comments on commit 9223286

Please sign in to comment.