From 71114ee8b3477f3bec8518b03060cbf3f2697f9f Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Tue, 19 Sep 2023 07:14:38 +0300 Subject: [PATCH 1/2] release 0.3.1 --- CHANGELOG-rust.md | 3 +++ Cargo.toml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-rust.md b/CHANGELOG-rust.md index 2442d691..7911bf26 100644 --- a/CHANGELOG-rust.md +++ b/CHANGELOG-rust.md @@ -5,6 +5,9 @@ This changelog tracks the Rust `svdtools` project. See ## [Unreleased] +## [v0.3.1] 2023-09-19 + +* add `svdtools html` and `svdtools htmlcompare` tools from `stm32-rs` * update `svd-encoder`, `--format-config` and optional `out_path` for `patch` * add field name in enumeratedValues derive path diff --git a/Cargo.toml b/Cargo.toml index 0869c457..043079d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "svdtools" -version = "0.3.0" +version = "0.3.1" repository = "https://github.com/stm32-rs/svdtools" description = "Tool for modifying bugs in CMSIS SVD" authors = [ @@ -26,7 +26,7 @@ edition = "2021" [dependencies] clap = { version = "4.1", features = ["derive", "cargo", "color"] } serde = { version = "1.0", features = ["derive"] } -quick-xml = { version = "0.28", features = ["serialize"] } +quick-xml = { version = "0.30", features = ["serialize"] } svd-rs = { version = "0.14.2", features = ["serde", "derive-from"] } svd-parser = { version = "0.14.2", features = ["expand"] } svd-encoder = "0.14.3" From 3f8ca156e0782238c399569240251350f46e922a Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Tue, 19 Sep 2023 09:11:41 +0300 Subject: [PATCH 2/2] ignore enums --- src/html/htmlcompare_cli.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/html/htmlcompare_cli.rs b/src/html/htmlcompare_cli.rs index 4aca8782..35a136f4 100644 --- a/src/html/htmlcompare_cli.rs +++ b/src/html/htmlcompare_cli.rs @@ -17,7 +17,8 @@ fn parse(in_path: &Path) -> Result { let mut input = String::new(); File::open(in_path)?.read_to_string(&mut input)?; - let device = svd_parser::parse_with_config(&input, &Config::default().expand(true))?; + let device = + svd_parser::parse_with_config(&input, &Config::default().expand(true).ignore_enums(true))?; let name = in_path .file_stem() .unwrap()