Skip to content

Commit b291234

Browse files
committed
Combine serde_json and tests into one crate
1 parent d37fc6c commit b291234

37 files changed

+35
-70
lines changed

Cargo.toml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
1-
[workspace]
2-
members = [
3-
"json",
4-
"json_tests",
5-
]
1+
[package]
2+
name = "serde_json"
3+
version = "0.9.10"
4+
authors = ["Erick Tryzelaar <[email protected]>"]
5+
license = "MIT/Apache-2.0"
6+
description = "A JSON serialization file format"
7+
repository = "https://github.com/serde-rs/json"
8+
documentation = "http://docs.serde.rs/serde_json/"
9+
keywords = ["json", "serde", "serialization"]
10+
categories = ["encoding"]
11+
readme = "../README.md"
12+
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
13+
publish = false # this branch contains breaking changes
14+
15+
[badges]
16+
travis-ci = { repository = "serde-rs/json" }
17+
18+
[features]
19+
preserve_order = ["linked-hash-map"]
20+
21+
[dependencies]
22+
serde = { git = "https://github.com/serde-rs/serde", branch = "1.0" }
23+
num-traits = "0.1.32"
24+
linked-hash-map = { version = "0.4.1", optional = true }
25+
itoa = "0.3"
26+
dtoa = "0.4"
27+
28+
[dev-dependencies]
29+
compiletest_rs = "0.2"
30+
serde_bytes = { git = "https://github.com/serde-rs/bytes", branch = "1.0" }
31+
serde_derive = { git = "https://github.com/serde-rs/serde", branch = "1.0" }

json/Cargo.toml

Lines changed: 0 additions & 30 deletions
This file was deleted.

json/LICENSE-APACHE

Lines changed: 0 additions & 1 deletion
This file was deleted.

json/LICENSE-MIT

Lines changed: 0 additions & 1 deletion
This file was deleted.

json/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

json_tests/Cargo.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

json_tests/tests/compiletest.rs renamed to tests/compiletest.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg(feature = "unstable-testing")]
2-
31
extern crate compiletest_rs as compiletest;
42

53
use std::env;
@@ -8,7 +6,7 @@ fn run_mode(mode: &'static str) {
86
let mut config = compiletest::default_config();
97

108
config.mode = mode.parse().expect("invalid mode");
11-
config.target_rustcflags = Some("-L deps/target/debug/deps".to_owned());
9+
config.target_rustcflags = Some("-L tests/deps/target/debug/deps".to_owned());
1210
if let Ok(name) = env::var("TESTNAME") {
1311
config.filter = Some(name);
1412
}

json_tests/deps/Cargo.toml renamed to tests/deps/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ publish = false
77
[workspace]
88

99
[dependencies]
10-
serde_json = { path = "../../json" }
10+
serde_json = { path = "../.." }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

travis.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,14 @@ if [ -n "${CLIPPY}" ]; then
2828
exit
2929
fi
3030

31-
cd "$DIR/json"
32-
cargo clippy -- -Dclippy
33-
34-
cd "$DIR/json_tests"
3531
cargo clippy -- -Dclippy
3632
else
3733
CHANNEL=nightly
38-
cd "$DIR/json"
3934
channel clean
4035
channel build
41-
channel build --features preserve_order
36+
(cd "$DIR/tests/deps" && channel build)
4237
channel test
43-
cd "$DIR/json_tests/deps"
44-
channel build
45-
cd "$DIR/json_tests"
46-
channel test --features unstable-testing
38+
channel test --features preserve_order
4739

4840
for CHANNEL in stable 1.12.0 1.13.0 beta; do
4941
cd "$DIR/json"

0 commit comments

Comments
 (0)