Skip to content

Commit d7fc8b4

Browse files
authored
Merge pull request #143 from stm32-rs/release-0.3.0
release rust 0.3.0
2 parents 80541fe + 88b77c4 commit d7fc8b4

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

CHANGELOG-rust.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ This changelog tracks the Rust `svdtools` project. See
55

66
## [Unreleased]
77

8+
## [v0.3.0] 2023-03-27
9+
810
* cluster add/modify
911
* use `normpath` instead of std::fs::canonicalize
1012

11-
## [v0.2.8] 2022-01-28
13+
## [v0.2.8] 2023-01-28
1214

1315
* patch: added possibility to modify dim elements (arrays)
1416
* mmap: replace %s in field array
@@ -73,7 +75,8 @@ Other changes:
7375

7476
* Initial release with feature-parity with the Python project.
7577

76-
[Unreleased]: https://github.com/stm32-rs/svdtools/compare/v0.2.8...HEAD
78+
[Unreleased]: https://github.com/stm32-rs/svdtools/compare/v0.3.0...HEAD
79+
[v0.3.0]: https://github.com/stm32-rs/svdtools/compare/v0.2.8...v0.3.0
7780
[v0.2.8]: https://github.com/stm32-rs/svdtools/compare/v0.2.7...v0.2.8
7881
[v0.2.7]: https://github.com/stm32-rs/svdtools/compare/v0.2.6...v0.2.7
7982
[v0.2.6]: https://github.com/stm32-rs/svdtools/compare/v0.2.5...v0.2.6

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "svdtools"
3-
version = "0.2.8"
3+
version = "0.3.0"
44
repository = "https://github.com/stm32-rs/svdtools"
55
description = "Tool for modifying bugs in CMSIS SVD"
66
authors = [
@@ -24,9 +24,9 @@ include = ["/res", "/src", "/tests", "CHANGELOG-rust.md", "README.md", "LICENSE-
2424
edition = "2021"
2525

2626
[dependencies]
27-
clap = { version = "3.2", features = ["derive", "cargo"] }
27+
clap = { version = "4.1", features = ["derive", "cargo", "color"] }
2828
serde = { version = "1.0", features = ["derive"] }
29-
quick-xml = { version = "0.25", features = ["serialize"] }
29+
quick-xml = { version = "0.28", features = ["serialize"] }
3030
svd-rs = { version = "0.14.1", features = ["serde", "derive-from"] }
3131
svd-parser = { version = "0.14.1", features = ["expand"] }
3232
svd-encoder = "0.14.1"
@@ -39,7 +39,7 @@ thiserror = "1.0.35"
3939
linked-hash-map = "0.5"
4040
globset = "0.4.8"
4141
commands = "0.0.5"
42-
env_logger = "0.9"
42+
env_logger = "0.10"
4343
log = { version = "~0.4", features = ["std"] }
4444
normpath = "1.1.0"
4545

src/cli.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,19 @@ enum Command {
1313
/// Patches an SVD file as specified by a YAML file
1414
Patch {
1515
/// Path to input YAML file
16-
#[clap(parse(from_os_str))]
1716
yaml_file: PathBuf,
1817
},
1918
/// Generate Make dependency file listing dependencies for a YAML file.
2019
Makedeps {
2120
/// Input yaml file
22-
#[clap(parse(from_os_str))]
2321
yaml_file: PathBuf,
2422

2523
/// Dependencies output file
26-
#[clap(parse(from_os_str))]
2724
deps_file: PathBuf,
2825
},
2926
/// Print list of all interrupts described by an SVD file
3027
Interrupts {
3128
/// Path to input SVD file
32-
#[clap(parse(from_os_str))]
3329
svd_file: PathBuf,
3430

3531
/// Whether to print gaps in interrupt number sequence
@@ -39,17 +35,14 @@ enum Command {
3935
/// Generate text-based memory map of an SVD file.
4036
Mmap {
4137
/// Path to input SVD file
42-
#[clap(parse(from_os_str))]
4338
svd_file: PathBuf,
4439
},
4540
/// Convert SVD representation between file formats
4641
Convert {
4742
/// Path to input file
48-
#[clap(parse(from_os_str))]
4943
in_path: PathBuf,
5044

5145
/// Path to output file
52-
#[clap(parse(from_os_str))]
5346
out_path: PathBuf,
5447

5548
/// Format of input file (XML, JSON or YAML)
@@ -77,7 +70,7 @@ enum Command {
7770
/// If not specified, the default format config will be used.
7871
///
7972
/// Only used for SVD output format.
80-
#[clap(long = "format-config", parse(from_os_str))]
73+
#[clap(long)]
8174
format_config: Option<PathBuf>,
8275
},
8376
}

0 commit comments

Comments
 (0)