From 44daae0b9d224e9917c8ddfec5d7047045053d5f Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Mon, 4 Oct 2021 21:30:51 +0300 Subject: [PATCH] move svd2json example to svd-parser --- svd-parser/Cargo.toml | 7 +++++++ {svd-rs => svd-parser}/examples/svd2json.rs | 0 svd-rs/Cargo.toml | 8 -------- tests/Cargo.toml | 3 ++- 4 files changed, 9 insertions(+), 9 deletions(-) rename {svd-rs => svd-parser}/examples/svd2json.rs (100%) diff --git a/svd-parser/Cargo.toml b/svd-parser/Cargo.toml index e1bdc8b3..d3aadcaa 100644 --- a/svd-parser/Cargo.toml +++ b/svd-parser/Cargo.toml @@ -21,3 +21,10 @@ svd-rs = { version = "0.11.0", path = "../svd-rs"} roxmltree = "0.14.1" anyhow = "1.0.19" thiserror = "1.0.5" + +[dev-dependencies] +serde_json = "1.0" +svd-rs = { version = "0.11.0", path = "../svd-rs", features = ["serde"] } + +[[example]] +name = "svd2json" diff --git a/svd-rs/examples/svd2json.rs b/svd-parser/examples/svd2json.rs similarity index 100% rename from svd-rs/examples/svd2json.rs rename to svd-parser/examples/svd2json.rs diff --git a/svd-rs/Cargo.toml b/svd-rs/Cargo.toml index e48d298e..29d51b2c 100644 --- a/svd-rs/Cargo.toml +++ b/svd-rs/Cargo.toml @@ -28,11 +28,3 @@ version = "1.5.2" version = "1.0" features = ["derive"] optional = true - -[dev-dependencies] -serde_json = "1.0" -svd-parser = { version = "0.11.0", path = "../svd-parser"} - -[[example]] -name = "svd2json" -required-features = ["serde"] diff --git a/tests/Cargo.toml b/tests/Cargo.toml index c7f145c1..f55c8767 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -4,7 +4,8 @@ license = "MIT OR Apache-2.0" name = "svd-tests" repository = "https://github.com/rust-embedded/svd" edition = "2018" -version = "0.10.2" +version = "0.11.0" +publish = false [dependencies] svd-rs = { path = "../svd-rs"}