File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,17 @@ jobs:
35
35
- run : cargo generate-lockfile
36
36
- run : ./ci/run-docker.sh ${{ matrix.target }}
37
37
38
- stable :
39
- name : Build succeeds on stable
38
+ msrv :
39
+ name : Check MSRV
40
40
runs-on : ubuntu-latest
41
41
steps :
42
42
- 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"
43
47
- name : Install Rust
44
- run : rustup update stable && rustup default stable
48
+ run : rustup update "$MSRV" && rustup default "$MSRV"
45
49
- run : cargo build -p libm
46
50
47
51
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ repository = "https://github.com/rust-lang/libm"
11
11
version = " 0.2.9"
12
12
edition = " 2021"
13
13
exclude = [" /ci/" , " /.github/workflows/" ]
14
+ rust-version = " 1.63"
14
15
15
16
[features ]
16
17
default = []
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ To run all benchmarks:
34
34
35
35
Please check [ CONTRIBUTING.md] ( CONTRIBUTING.md )
36
36
37
+ ## Minimum Rust version policy
38
+
39
+ This crate supports rustc 1.63 and newer.
40
+
37
41
## License
38
42
39
43
Usage is licensed under the MIT license ([ LICENSE-MIT] ( LICENSE-MIT ) or
You can’t perform that action at this time.
0 commit comments