Skip to content

Commit cc59b26

Browse files
committed
Our dev-dependency on trybuild enables serde's "derive" feature, which we don't want affecting `cargo build`.
1 parent e3a2c3a commit cc59b26

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

.travis.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ matrix:
1313
- rust: 1.15.0
1414
script:
1515
# preserve_order is not supported on 1.15.0
16-
- cargo build
17-
- cargo build --features arbitrary_precision
16+
- cargo build --manifest-path tests/crate/Cargo.toml
17+
- cargo build --manifest-path tests/crate/Cargo.toml --features arbitrary_precision
18+
19+
- rust: 1.18.0
20+
script:
21+
- cargo build --manifest-path tests/crate/Cargo.toml
22+
- cargo build --manifest-path tests/crate/Cargo.toml --features preserve_order
23+
- cargo build --manifest-path tests/crate/Cargo.toml --features arbitrary_precision
1824

1925
- rust: stable
2026
- rust: beta
21-
- rust: 1.18.0
27+
- rust: 1.31.0
2228

2329
- rust: nightly
2430
name: Clippy

tests/crate/Cargo.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "serde_json_test"
3+
version = "0.0.0"
4+
edition = "2018"
5+
publish = false
6+
7+
[lib]
8+
path = "test.rs"
9+
10+
[dependencies]
11+
serde_json = { path = "../.." }
12+
13+
[features]
14+
arbitrary_precision = ["serde_json/arbitrary_precision"]
15+
preserve_order = ["serde_json/preserve_order"]
16+
raw_value = ["serde_json/raw_value"]
17+
unbounded_depth = ["serde_json/unbounded_depth"]

tests/crate/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub use serde_json::*;

0 commit comments

Comments
 (0)