Skip to content

Commit 3ac487a

Browse files
committed
release svd-rs/parser 0.14.1
1 parent bf2544b commit 3ac487a

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

svd-parser/CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## Unreleased
99

10+
## [v0.14.1] - 2022-10-23
11+
12+
- Update to `svd-rs` 0.14.1
13+
- Add `BlockPath::parent`
14+
1015
## [v0.14.0] - 2022-07-19
1116

1217
- Make `expand::Index`, pathes & `derive_peripheral`, etc. public
@@ -45,8 +50,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
4550

4651
Previous versions in common [changelog](../CHANGELOG.md).
4752

48-
[Unreleased]: https://github.com/rust-embedded/svd/compare/v0.14.0...HEAD
49-
[v0.13.4]: https://github.com/rust-embedded/svd/compare/svd-parser-v0.13.4...v0.14.0
53+
[Unreleased]: https://github.com/rust-embedded/svd/compare/svd-rs-v0.14.1...HEAD
54+
[v0.14.1]: https://github.com/rust-embedded/svd/compare/v0.14.0...svd-rs-v0.14.1
55+
[v0.14.0]: https://github.com/rust-embedded/svd/compare/svd-parser-v0.13.4...v0.14.0
5056
[v0.13.4]: https://github.com/rust-embedded/svd/compare/svd-parser-v0.13.3...svd-parser-v0.13.4
5157
[v0.13.3]: https://github.com/rust-embedded/svd/compare/svd-parser-v0.13.2...svd-parser-v0.13.3
5258
[v0.13.2]: https://github.com/rust-embedded/svd/compare/svd-rs-v0.13.2...svd-parser-v0.13.2

svd-parser/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ name = "svd-parser"
1111
repository = "https://github.com/rust-embedded/svd"
1212
edition = "2021"
1313
rust-version = "1.56.0"
14-
version = "0.14.0"
14+
version = "0.14.1"
1515
readme = "README.md"
1616

1717
[features]
1818
derive-from = ["svd-rs/derive-from"]
1919
expand = ["derive-from"]
2020

2121
[dependencies]
22-
svd-rs = { version = "0.14.0", path = "../svd-rs" }
22+
svd-rs = { version = "0.14.1", path = "../svd-rs" }
2323
roxmltree = "0.14.1"
2424
anyhow = "1.0.58"
2525
thiserror = "1.0.31"
2626

2727
[dev-dependencies]
2828
serde_json = { version = "1.0", features = ["preserve_order"] }
2929
serde_yaml = "0.8.26"
30-
svd-rs = { version = "0.14.0", path = "../svd-rs", features = ["serde"] }
30+
svd-rs = { version = "0.14.1", path = "../svd-rs", features = ["serde"] }
3131

3232
[[example]]
3333
name = "svd2json"

svd-parser/src/expand.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ impl BlockPath {
4949
pub fn name(&self) -> &String {
5050
self.path.last().unwrap()
5151
}
52+
pub fn parent(&self) -> Option<Self> {
53+
let mut p = self.clone();
54+
p.path.pop()?;
55+
Some(p)
56+
}
5257
}
5358

5459
impl fmt::Display for BlockPath {

svd-rs/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## Unreleased
99

10+
## [v0.14.1] - 2022-10-23
11+
1012
- (De)serialize `dimIndex` (from)to string
1113

1214
## [v0.14.0] - 2022-07-19
@@ -74,8 +76,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7476

7577
Previous versions in common [changelog](../CHANGELOG.md).
7678

77-
[Unreleased]: https://github.com/rust-embedded/svd/compare/v0.14.0...HEAD
78-
[v0.13.2]: https://github.com/rust-embedded/svd/compare/svd-rs-v0.13.2...v0.14.0
79+
[Unreleased]: https://github.com/rust-embedded/svd/compare/svd-rs-v0.14.1...HEAD
80+
[v0.14.1]: https://github.com/rust-embedded/svd/compare/v0.14.0...svd-rs-v0.14.1
81+
[v0.14.0]: https://github.com/rust-embedded/svd/compare/svd-rs-v0.13.2...v0.14.0
7982
[v0.13.2]: https://github.com/rust-embedded/svd/compare/svd-rs-v0.13.1...svd-rs-v0.13.2
8083
[v0.13.1]: https://github.com/rust-embedded/svd/compare/svd-parser-v0.13.1...svd-rs-v0.13.1
8184
[v0.13.0]: https://github.com/rust-embedded/svd/compare/svd-rs-v0.12.1...v0.13.0

svd-rs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "svd-rs"
1010
repository = "https://github.com/rust-embedded/svd"
1111
edition = "2021"
1212
rust-version = "1.56.0"
13-
version = "0.14.0"
13+
version = "0.14.1"
1414
readme = "README.md"
1515

1616
[features]

0 commit comments

Comments
 (0)