Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Precisify MSRV
  • Loading branch information
JohnTitor committed Jun 29, 2021
1 parent 29f9100 commit 63886f6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
# MSRV and nightly
version: [1.46.0, nightly]
version: [1.41.0, 1.46.0, nightly]
steps:
- uses: actions/checkout@v2

Expand All @@ -23,20 +23,21 @@ jobs:
rustup override set ${{ matrix.version }}
- name: Rustfmt check
if: matrix.version == '1.46.0'
if: matrix.version == '1.41.0'
run: |
rustup component add rustfmt
cargo fmt --all -- --check
- name: Run `cargo test` on workspace
run: cargo test --workspace
run: cargo test --workspace --exclude=phf_codegen_test

- name: phf_macros UI test
if: matrix.version == '1.46.0'
if: matrix.version == '1.41.0'
working-directory: phf_macros
run: cargo test --features=unicase -- --ignored --test-threads=1

- name: phf_codegen test
if: matrix.version != '1.41.0' # `uncased` requires 1.46 or higher.
run: cargo test -p phf_codegen_test

- name: no_std build check
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

## 0.9.0

* Our MSRV is now 1.46.0 (because of dependencies)
* Our MSRV is now 1.41 or 1.46 (because of dependencies)
* `rand` dependency has been upgraded to 0.8
* Fix some crates' build on `no_std`
* Restore the `unicase` feature for `phf_macros`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -13,7 +13,7 @@ a 100,000 entry map in roughly .4 seconds. By default statistics are not
produced, but if you set the environment variable `PHF_STATS` it will issue
a compiler note about how long it took.

MSRV (minimum supported rust version) is Rust 1.46.
MSRV (minimum supported rust version) is Rust 1.41, or 1.46 if you use the `uncased` feature.

## Usage

Expand Down
3 changes: 2 additions & 1 deletion phf/src/lib.rs
Expand Up @@ -8,7 +8,8 @@
//! If the `macros` Cargo feature is enabled, the `phf_map`, `phf_set`,
//! `phf_ordered_map`, and `phf_ordered_set` macros can be used to construct
//! the PHF type. This method can be used with a stable compiler
//! (minimum supported rust version is 1.46).
//! (minimum supported rust version is 1.41, or 1.46 if you use the `uncased`
//! feature).
//!
//! ```toml
//! [dependencies]
Expand Down

0 comments on commit 63886f6

Please sign in to comment.