Skip to content

Commit

Permalink
Upgrade edition, set categories, MSRV (#37)
Browse files Browse the repository at this point in the history
* 18: Crates tags: added categories; added edition 2018

* wip

* Upgrade to edition 2021, set MSRV

I used `cargo msrv -- cargo test` tool to find that 1.56.1 is the oldest satisfied MSRV

---------

Co-authored-by: Horki <ivanzvonimirhorvat@gmail.com>
  • Loading branch information
nyurik and Horki committed Dec 12, 2023
1 parent c7a0509 commit a62b4a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/rust.yml
Expand Up @@ -11,20 +11,30 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
fmt:

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read crate metadata
id: metadata
run: echo "rust-version=$(sed -ne 's/rust-version *= *\"\(.*\)\"/\1/p' Cargo.toml)" >> $GITHUB_OUTPUT
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ steps.metadata.outputs.rust-version }}
- run: cargo test --verbose

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build
run: cargo fmt --check
3 changes: 3 additions & 0 deletions Cargo.toml
Expand Up @@ -7,6 +7,9 @@ license = "Apache-2.0 OR MIT"
readme = "README.md"
repository = "https://github.com/servo/rust-fnv"
documentation = "https://doc.servo.org/fnv/"
categories = ["algorithms", "data-structures"]
edition = "2021"
rust-version = "1.56.1"

[lib]
name = "fnv"
Expand Down

0 comments on commit a62b4a7

Please sign in to comment.