Make tests configuration option optional.

Bug: 293289578
Test: atest cargo_embargo.test
Change-Id: Ia35acdcad920e0f585cc5be650f1d1e3b6aa176d
This commit is contained in:
Andrew Walbran
2023-08-10 14:28:27 +01:00
parent 3da057735e
commit 8e86dfe14e
2 changed files with 1 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ fn default_true() -> bool {
#[serde(deny_unknown_fields)]
pub struct Config {
/// Whether to output "rust_test" modules.
#[serde(default)]
pub tests: bool,
/// Set of features to enable. If non-empty, disables the default crate features.
#[serde(default)]

View File

@@ -1,6 +1,5 @@
{
"features": ["svg_backend", "area_series", "line_series"],
"tests": false,
"package": {
"plotters": {
"device_supported": true