Increase MSRV to 1.28.0 (#716)

This commit is contained in:
Francesca Plebani 2018-11-19 16:56:11 -05:00 committed by GitHub
parent 3c59283b3f
commit 5be52c9753
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 16 deletions

View file

@ -21,7 +21,7 @@ matrix:
packages: *i686_packages
- env: TARGET=i686-unknown-linux-gnu
os: linux
rust: 1.24.1
rust: 1.28.0
addons:
apt:
packages: *i686_packages
@ -35,7 +35,7 @@ matrix:
rust: stable
- env: TARGET=x86_64-unknown-linux-gnu
os: linux
rust: 1.24.1
rust: 1.28.0
# macOS
- env: TARGET=x86_64-apple-darwin
@ -46,7 +46,7 @@ matrix:
rust: stable
- env: TARGET=x86_64-apple-darwin
os: osx
rust: 1.24.1
rust: 1.28.0
# iOS
- env: TARGET=x86_64-apple-ios
@ -57,23 +57,12 @@ matrix:
rust: stable
- env: TARGET=x86_64-apple-ios
os: osx
rust: 1.24.1
rust: 1.28.0
install:
- rustup self update
- rustup target add $TARGET; true
before_script:
- |
if [ "$TRAVIS_RUST_VERSION" == "1.24.1" ]; then
# Some of winit's transitive dependencies have made semver-compatible releases that actually
# break their compatibility with rust 1.24.1. We freeze them to their last compatible version to
# ensure that winit still compiles fine on this rust version.
cargo update
cargo update -p stb_truetype --precise 0.2.2
cargo update -p rusttype --precise 0.7.1
fi
script:
- cargo build --target $TARGET --verbose
- cargo build --target $TARGET --features serde --verbose

View file

@ -9,6 +9,7 @@
# Version 0.18.0 (2018-11-07)
- **Breaking:** minimum supported Rust version increased to 1.28.0.
- **Breaking:** `image` crate upgraded to 0.20. This is exposed as part of the `icon_loading` API.
- On Wayland, pointer events will now provide the current modifiers state.
- On Wayland, titles will now be displayed in the window header decoration.

View file

@ -41,6 +41,8 @@ fn main() {
}
```
Note that winit requires Rust 1.28.0 or later.
### Cargo Features
Winit provides the following features, which can be enabled in your `Cargo.toml` file:

View file

@ -5,7 +5,7 @@ environment:
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
- TARGET: x86_64-pc-windows-msvc
CHANNEL: 1.24.1
CHANNEL: 1.28.0
- TARGET: i686-pc-windows-msvc
CHANNEL: nightly
- TARGET: i686-pc-windows-gnu