This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,17 @@ jobs:
3535 - run : cargo generate-lockfile
3636 - run : ./ci/run-docker.sh ${{ matrix.target }}
3737
38- stable :
39- name : Build succeeds on stable
38+ msrv :
39+ name : Check MSRV
4040 runs-on : ubuntu-latest
4141 steps :
4242 - uses : actions/checkout@master
43+ - run : |
44+ msrv="$(perl -ne 'print if s/rust-version\s*=\s*"(.*)"/\1/g' Cargo.toml)"
45+ echo "MSRV: $msrv"
46+ echo "MSRV=$msrv" >> "$GITHUB_ENV"
4347 - name : Install Rust
44- run : rustup update stable && rustup default stable
48+ run : rustup update "$MSRV" && rustup default "$MSRV"
4549 - run : cargo build -p libm
4650
4751
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ repository = "https://github.com/rust-lang/libm"
1111version = " 0.2.9"
1212edition = " 2021"
1313exclude = [" /ci/" , " /.github/workflows/" ]
14+ rust-version = " 1.63"
1415
1516[features ]
1617default = []
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ To run all benchmarks:
3434
3535Please check [ CONTRIBUTING.md] ( CONTRIBUTING.md )
3636
37+ ## Minimum Rust version policy
38+
39+ This crate supports rustc 1.63 and newer.
40+
3741## License
3842
3943Usage is licensed under the MIT license ([ LICENSE-MIT] ( LICENSE-MIT ) or
You can’t perform that action at this time.
0 commit comments