-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new function to ignore some
HeaderError
Signed-off-by: YdrMaster <[email protected]>
- Loading branch information
Showing
7 changed files
with
177 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 更新日志 Change Log | ||
|
||
## v0.1.2 | ||
|
||
- 功能 | ||
- 增加一个接收谓词闭包的构造函数,支持忽略某些 `HeaderError`([issue#1](https://github.com/YdrMaster/dtb-walker/issues/1)) | ||
|
||
--- | ||
|
||
- feature | ||
- a new function with a filter closure, allows to ignore some `HeaderError` ([issue#1](https://github.com/YdrMaster/dtb-walker/issues/1)) | ||
|
||
## v0.1.1 | ||
|
||
- 修正 | ||
- 导出 `HeaderError` | ||
|
||
- 示例 | ||
- 演示判断 `HeaderError` 类型以接受某些不合规的首部([issue#1](https://github.com/YdrMaster/dtb-walker/issues/1)) | ||
|
||
--- | ||
|
||
- fix | ||
- pub use `HeaderError` | ||
|
||
- examples | ||
- shows the way to allow dtb implemeatations that do not conform to specification by matching the `HeaderError` ([issue#1](https://github.com/YdrMaster/dtb-walker/issues/1)) | ||
|
||
## v0.1.0 | ||
|
||
初次发布。 | ||
|
||
--- | ||
|
||
First release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "dtb-walker" | ||
description = "A simple package for DTB depth-first walking." | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
edition = "2021" | ||
authors = ["YdrMaster <[email protected]>"] | ||
repository = "https://github.com/YdrMaster/dtb-walker.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# DTB depth-first walking | ||
|
||
- [中文自述文档](../README.md) | ||
- [Change Log](../CHANGELOG.md) | ||
|
||
A simple package for DTB depth-first walking. | ||
|
||
Try an example: | ||
|
||
```cmd | ||
cargo run --release --example qemu-virt | ||
``` | ||
|
||
Following the [devicetree-specification-v0.4-rc1](https://github.com/devicetree-org/devicetree-specification/releases/tag/v0.4-rc1),DTB v17。 | ||
|
||
Features: | ||
|
||
- [x] optional header verifying; | ||
- [x] `no_std`; | ||
- [x] without `alloc`; | ||
- [x] terminate walking at any time; | ||
- [x] step over nodes with low overhead; | ||
- [ ] built-in standard property parsing; | ||
- [x] `compatible` | ||
- [x] `model` | ||
- [x] `phandle` | ||
- [x] `status` | ||
- [x] `#address-cells` | ||
- [x] `#size-cells` | ||
- [x] `reg` | ||
- [x] `virtual-reg` | ||
- [ ] `ranges` | ||
- [ ] `dma-ranges` | ||
- [x] `dma-coherent` | ||
- [ ] `name (deprecated)` | ||
- [ ] `device_type (deprecated)` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters