Skip to content

Commit f5da2b7

Browse files
committed
Travis CI: For Rust 1.32.0, only do a compilation check
Since our `dev-dependencies` now require a newer Rust version, no longer do a full test for Rust 1.32.0. It seems the `time` crate is especially aggressive in its MSRV bumping; the `dev-dependencies` should be investigated to see if they can be trimmed to lower the MSRV for running the test suite.
1 parent 9025688 commit f5da2b7

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
*.a
88
/target/
99
Cargo.lock
10+
/msrv-test/target/

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: rust
22
rust:
3-
- 1.32.0 # uniform paths
43
- stable
54
- beta
65
- nightly
@@ -42,6 +41,10 @@ matrix:
4241
- cargo clean
4342
- cargo test --all --all-features
4443
- cargo test --all --release --all-features
44+
- name: "MSRV (1.32.0) compile check"
45+
rust: 1.32.0 # uniform paths
46+
script:
47+
- cd msrv-test && cargo build
4548
- stage: lint
4649
name: "Rust: rustfmt"
4750
rust: stable

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ draft API features, have a look at
3434
The current 0.9 release series requires `libzmq` 4.1 or newer. New
3535
release series of `zmq` may require newer `libzmq` versions.
3636

37+
Regarding the minimum Rust version required, `zmq` is CI-tested on
38+
current stable, beta and nightly channels of Rust. Additionally, it is
39+
made sure that the code still compiles on Rust 1.32.0. However, no
40+
tests are run for that build, so use `zmq` on older Rust versions on
41+
your own risk. It is however likely that it will just work anyways.
42+
3743
# Installation
3844

3945
rust-zmq is available from [crates.io](https://crates.io). Users
@@ -123,7 +129,7 @@ need set `LIBZMQ_PREFIX` as described above.
123129
fn main() {
124130
let ctx = zmq::Context::new();
125131

126-
let mut socket = ctx.socket(zmq::REQ).unwrap();
132+
let socket = ctx.socket(zmq::REQ).unwrap();
127133
socket.connect("tcp://127.0.0.1:1234").unwrap();
128134
socket.send("hello world!", 0).unwrap();
129135
}

msrv-test/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "msrv-test"
3+
version = "0.0.1"
4+
authors = ["Andreas Rottmann <[email protected]>"]
5+
edition = "2018"
6+
7+
[dependencies]
8+
zmq = { path = ".." }

msrv-test/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
let ctx = zmq::Context::new();
3+
4+
let socket = ctx.socket(zmq::REQ).unwrap();
5+
socket.connect("tcp://127.0.0.1:1234").unwrap();
6+
socket.send("hello world!", 0).unwrap();
7+
}

0 commit comments

Comments
 (0)