mirror of
https://gitee.com/openharmony/third_party_rust_serde
synced 2024-12-18 03:46:51 +00:00
chore(cargo): Only depend on clippy when testing
This commit is contained in:
parent
3cde6fa333
commit
517c2f79b7
@ -22,9 +22,11 @@ script:
|
|||||||
- |
|
- |
|
||||||
(cd serde && travis-cargo build) &&
|
(cd serde && travis-cargo build) &&
|
||||||
(cd serde && travis-cargo test) &&
|
(cd serde && travis-cargo test) &&
|
||||||
|
(cd serde && travis-cargo --only nightly test -- --features nightly-testing) &&
|
||||||
(cd serde_tests && travis-cargo test) &&
|
(cd serde_tests && travis-cargo test) &&
|
||||||
(cd serde_macros && travis-cargo --only nightly test) &&
|
(cd serde_tests && travis-cargo --only nightly test -- --features nightly-testing) &&
|
||||||
(cd serde_macros && travis-cargo --only nightly bench) &&
|
(cd serde_macros && travis-cargo --only nightly test -- --features nightly-testing) &&
|
||||||
|
(cd serde_macros && travis-cargo --only nightly bench -- --features nightly-testing) &&
|
||||||
(cd serde && travis-cargo --only stable doc) &&
|
(cd serde && travis-cargo --only stable doc) &&
|
||||||
(cd serde_codegen && travis-cargo --only stable doc)
|
(cd serde_codegen && travis-cargo --only stable doc)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ readme = "../README.md"
|
|||||||
keywords = ["serde", "serialization"]
|
keywords = ["serde", "serialization"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
nightly = ["clippy"]
|
nightly-testing = ["clippy"]
|
||||||
num-bigint = ["num/bigint"]
|
num-bigint = ["num/bigint"]
|
||||||
num-complex = ["num/complex"]
|
num-complex = ["num/complex"]
|
||||||
num-impls = ["num-bigint", "num-complex", "num-rational"]
|
num-impls = ["num-bigint", "num-complex", "num-rational"]
|
||||||
|
@ -11,7 +11,8 @@ keywords = ["serde", "serialization"]
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["with-syntex"]
|
default = ["with-syntex"]
|
||||||
nightly = ["clippy", "quasi_macros"]
|
nightly = ["quasi_macros"]
|
||||||
|
nightly-testing = ["clippy"]
|
||||||
with-syntex = ["quasi/with-syntex", "quasi_codegen", "quasi_codegen/with-syntex", "syntex", "syntex_syntax"]
|
with-syntex = ["quasi/with-syntex", "quasi_codegen", "quasi_codegen/with-syntex", "syntex", "syntex_syntax"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@ -12,6 +12,9 @@ keywords = ["serde", "serialization"]
|
|||||||
name = "serde_macros"
|
name = "serde_macros"
|
||||||
plugin = true
|
plugin = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clippy = { version = "^0.0.37", optional = true }
|
clippy = { version = "^0.0.37", optional = true }
|
||||||
serde_codegen = { version = "^0.6.10", path = "../serde_codegen", default-features = false, features = ["nightly"] }
|
serde_codegen = { version = "^0.6.10", path = "../serde_codegen", default-features = false, features = ["nightly"] }
|
||||||
@ -20,4 +23,12 @@ serde_codegen = { version = "^0.6.10", path = "../serde_codegen", default-featur
|
|||||||
compiletest_rs = "^0.0.11"
|
compiletest_rs = "^0.0.11"
|
||||||
num = "^0.1.27"
|
num = "^0.1.27"
|
||||||
rustc-serialize = "^0.3.16"
|
rustc-serialize = "^0.3.16"
|
||||||
serde = { version = "^0.6.10", path = "../serde", features = ["nightly", "num-impls"] }
|
serde = { version = "^0.6.10", path = "../serde", features = ["num-impls"] }
|
||||||
|
|
||||||
|
[[test]]
|
||||||
|
name = "test"
|
||||||
|
path = "tests/test.rs"
|
||||||
|
|
||||||
|
[[bench]]
|
||||||
|
name = "bench"
|
||||||
|
path = "benches/bench.rs"
|
||||||
|
@ -11,7 +11,7 @@ keywords = ["serialization"]
|
|||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
nightly = ["clippy", "serde/nightly"]
|
nightly-testing = ["clippy", "serde/nightly-testing", "serde_codegen/nightly-testing"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
syntex = { version = "^0.26.0" }
|
syntex = { version = "^0.26.0" }
|
||||||
|
Loading…
Reference in New Issue
Block a user