File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : master
1+ name : main
22on :
33 push :
44 branches :
5- - master
5+ - main
66 schedule :
77 - cron : ' 0 0 * * 0' # 00:00 Sunday
88
Original file line number Diff line number Diff line change 33[ ![ crate] ( https://img.shields.io/crates/v/num-rational.svg )] ( https://crates.io/crates/num-rational )
44[ ![ documentation] ( https://docs.rs/num-rational/badge.svg )] ( https://docs.rs/num-rational )
55[ ![ minimum rustc 1.60] ( https://img.shields.io/badge/rustc-1.60+-red.svg )] ( https://rust-lang.github.io/rfcs/2495-min-rust-version.html )
6- [ ![ build status] ( https://github.com/rust-num/num-rational/workflows/master /badge.svg )] ( https://github.com/rust-num/num-rational/actions )
6+ [ ![ build status] ( https://github.com/rust-num/num-rational/actions/ workflows/main.yaml /badge.svg )] ( https://github.com/rust-num/num-rational/actions/workflows/main.yaml )
77
88Generic ` Rational ` numbers (aka fractions) for Rust.
99
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ check_version() {
2121 ]]
2222}
2323
24+ export CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback
25+ generate_lockfile () {
26+ cargo generate-lockfile
27+ if ! check_version 1.85 ; then
28+ cargo +stable update
29+ fi
30+ }
31+
2432echo " Testing $CRATE on rustc $RUST_VERSION "
2533if ! check_version $MSRV ; then
2634 echo " The minimum for $CRATE is rustc $MSRV "
@@ -32,6 +40,8 @@ NO_STD_FEATURES=(num-bigint serde)
3240echo " Testing supported features: ${STD_FEATURES[*]} "
3341echo " no_std supported features: ${NO_STD_FEATURES[*]} "
3442
43+ generate_lockfile
44+
3545set -x
3646
3747# test the default with std
You can’t perform that action at this time.
0 commit comments