Skip to content

Commit 0ba64ea

Browse files
authored
ci: Compatibility with rust 1.21.0 (#38)
* ci: Test Rust 1.19.0 * build: Compatibility with rust 1.21.0
1 parent dbccbf7 commit 0ba64ea

File tree

5 files changed

+28
-11
lines changed

5 files changed

+28
-11
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ script: make $SUITE
1111
matrix:
1212
include:
1313
- os: linux
14-
env: SUITE=checkall
14+
env: SUITE=check
15+
rust: "1.21.0"
1516
- os: linux
1617
env: SUITE=cargotest
18+
rust: "1.21.0"
19+
- os: linux
20+
env: SUITE=checkall
21+
- os: linux
22+
env: SUITE=cargotestall
1723
- os: osx
1824
env: SUITE=checkall
1925
- os: osx
20-
env: SUITE=cargotest
26+
env: SUITE=cargotestall
2127
- os: linux
2228
env: SUITE=format-check
2329
install: rustup component add rustfmt-preview

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build = "build.rs"
1616
all-features = true
1717

1818
[features]
19-
default = ["with_client_implementation", "with_panic", "with_failure", "with_log", "with_device_info", "with_rust_info", "with_debug_meta"]
19+
default = ["with_client_implementation", "with_panic", "with_failure", "with_log", "with_device_info", "with_rust_info"]
2020
with_client_implementation = ["reqwest", "im", "url", "with_backtrace"]
2121
with_backtrace = ["backtrace", "regex"]
2222
with_panic = ["with_backtrace"]
@@ -35,7 +35,7 @@ failure = { version = "0.1.1", optional = true }
3535
log = { version = "0.4.1", optional = true }
3636
serde = "1.0.43"
3737
serde_json = "1.0.16"
38-
sentry-types = "0.3.2"
38+
sentry-types = "0.3.3"
3939
reqwest = { version = "0.8.5", optional = true }
4040
uuid = { version = "0.6.3", features = ["v4"] }
4141
lazy_static = "1.0.0"

Makefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
all: test
22
.PHONY: all
33

4+
clean:
5+
@cargo clean
6+
.PHONY: clean
7+
48
build:
5-
@cargo build --all
9+
@cargo build
610
.PHONY: build
711

812
doc:
@@ -49,15 +53,23 @@ check-all-impls:
4953
@RUSTFLAGS=-Dwarnings cargo check --no-default-features --features 'with_failure,with_log,with_panic,with_error_chain'
5054
.PHONY: check-all-impls
5155

56+
check: check-no-default-features check-default-features
57+
.PHONY: check-all-features
58+
5259
checkall: check-all-features check-no-default-features check-default-features check-failure check-log check-panic check-error-chain check-all-impls
5360
.PHONY: checkall
5461

5562
cargotest:
5663
@echo 'TESTSUITE'
57-
@cargo test --all --all-features
64+
@cargo test
65+
.PHONY: cargotest
66+
67+
cargotestall:
68+
@echo 'TESTSUITE'
69+
@cargo test --all-features
5870
.PHONY: cargotest
5971

60-
test: checkall cargotest
72+
test: checkall cargotestall
6173
.PHONY: test
6274

6375
format-check:

src/backtrace_support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ lazy_static!{
4747
rv
4848
};
4949
pub static ref SECONDARY_BORDER_FRAMES: Vec<(&'static str, &'static str)> = {
50-
#[allow(unused_mut)]
50+
#![allow(unused_mut)]
5151
let mut rv = Vec::new();
5252
#[cfg(feature = "with_error_chain")] {
5353
rv.push(("error_chain::make_backtrace", "_<T as core..convert..Into<U>>::into"));

src/utils.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//! Useful utilities for working with events.
2-
use uuid::Uuid;
3-
42
use api::protocol::{Context, DebugImage, DeviceContext, OsContext, RuntimeContext};
5-
use api::protocol::debugid::DebugId;
63

74
#[cfg(all(feature = "with_device_info", target_os = "macos"))]
85
mod model_support {
@@ -66,8 +63,10 @@ mod model_support {
6663
mod findshlibs_support {
6764
use super::*;
6865
use api::protocol::SymbolicDebugImage;
66+
use api::protocol::debugid::DebugId;
6967
use findshlibs::{Segment, SharedLibrary, SharedLibraryId, TargetSharedLibrary,
7068
TARGET_SUPPORTED};
69+
use uuid::Uuid;
7170

7271
pub fn find_shlibs() -> Option<Vec<DebugImage>> {
7372
if !TARGET_SUPPORTED {

0 commit comments

Comments
 (0)