Skip to content

Commit 85f6e98

Browse files
committed
Raise the MSRV to 1.31
1 parent 1691e41 commit 85f6e98

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
language: rust
22
sudo: false
33
rust:
4-
- 1.15.0
5-
- 1.22.0 # rand
6-
- 1.26.0 # has_i128
74
- 1.31.0 # 2018!
5+
- 1.32.0 # rand
86
- stable
97
- beta
108
- nightly

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![crate](https://img.shields.io/crates/v/num-complex.svg)](https://crates.io/crates/num-complex)
44
[![documentation](https://docs.rs/num-complex/badge.svg)](https://docs.rs/num-complex)
5-
![minimum rustc 1.15](https://img.shields.io/badge/rustc-1.15+-red.svg)
5+
![minimum rustc 1.31](https://img.shields.io/badge/rustc-1.31+-red.svg)
66
[![Travis status](https://travis-ci.org/rust-num/num-complex.svg?branch=master)](https://travis-ci.org/rust-num/num-complex)
77

88
`Complex` numbers for Rust.
@@ -13,7 +13,7 @@ Add this to your `Cargo.toml`:
1313

1414
```toml
1515
[dependencies]
16-
num-complex = "0.2"
16+
num-complex = "0.3"
1717
```
1818

1919
and this to your crate root:
@@ -29,7 +29,7 @@ the default `std` feature. Use this in `Cargo.toml`:
2929

3030
```toml
3131
[dependencies.num-complex]
32-
version = "0.2"
32+
version = "0.3"
3333
default-features = false
3434
```
3535

@@ -47,4 +47,4 @@ Release notes are available in [RELEASES.md](RELEASES.md).
4747

4848
## Compatibility
4949

50-
The `num-complex` crate is tested for rustc 1.15 and greater.
50+
The `num-complex` crate is tested for rustc 1.31 and greater.

ci/rustup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -ex
66

77
export TRAVIS_RUST_VERSION
8-
for TRAVIS_RUST_VERSION in 1.15.0 1.22.0 1.26.0 stable beta nightly; do
8+
for TRAVIS_RUST_VERSION in 1.31.0 1.32.0 stable beta nightly; do
99
run="rustup run $TRAVIS_RUST_VERSION"
1010
$run cargo build --verbose
1111
$run $PWD/ci/test_full.sh

ci/test_full.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ set -ex
44

55
echo Testing num-complex on rustc ${TRAVIS_RUST_VERSION}
66

7-
FEATURES="std serde"
8-
if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable|1.26.0|1.22.0)$ ]]; then
9-
FEATURES="$FEATURES rand"
10-
fi
11-
if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable|1.26.0)$ ]]; then
12-
FEATURES="$FEATURES i128"
13-
fi
7+
case "$TRAVIS_RUST_VERSION" in
8+
1.31.*) FEATURES="serde" ;;
9+
*) FEATURES="serde rand" ;;
10+
esac
1411

1512
# num-complex should build and test everywhere.
1613
cargo build --verbose
@@ -29,3 +26,7 @@ done
2926
# test all supported features together
3027
cargo build --features="$FEATURES"
3128
cargo test --features="$FEATURES"
29+
30+
# test all supported features together with std
31+
cargo build --features="std $FEATURES"
32+
cargo test --features="std $FEATURES"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
//!
1313
//! ## Compatibility
1414
//!
15-
//! The `num-complex` crate is tested for rustc 1.15 and greater.
15+
//! The `num-complex` crate is tested for rustc 1.31 and greater.
1616
17-
#![doc(html_root_url = "https://docs.rs/num-complex/0.2")]
17+
#![doc(html_root_url = "https://docs.rs/num-complex/0.3")]
1818
#![no_std]
1919

2020
#[cfg(any(test, feature = "std"))]

0 commit comments

Comments
 (0)