6 releases

0.2.0-alpha.3 Jul 19, 2022
0.2.0-alpha.2 Jul 14, 2022
0.1.3 Jun 30, 2022

#200 in No standard library

Download history 4/week @ 2024-07-19 12/week @ 2024-07-26 6/week @ 2024-08-02 7/week @ 2024-08-09 5/week @ 2024-08-16 1/week @ 2024-08-23 7/week @ 2024-08-30 14/week @ 2024-09-06 17/week @ 2024-09-13 32/week @ 2024-09-20 30/week @ 2024-09-27 16/week @ 2024-10-04 23/week @ 2024-10-11 31/week @ 2024-10-18 33/week @ 2024-10-25 43/week @ 2024-11-01

130 downloads per month

MIT license

35KB
820 lines

深度优先遍历设备树二进制对象

CI Latest version issue Documentation license

DTB 深度优先遍历的薄封装。

测试示例:

cargo run --release --example qemu-virt

设备树定义根据 devicetree-specification-v0.4-rc1,DTB v17。

特性:

  • stable rust
  • 警告视为错误(包括 clippy)
  • 零开销抽象
    • no_std
    • 不需要 alloc
    • 可选是否检查首部正确性
    • 提前终止遍历
    • 标记跳过的节点不解析
  • 内置标准属性解析
    • compatible
    • model
    • phandle
    • status
    • #address-cells
    • #size-cells
    • reg
    • virtual-reg
    • ranges
    • dma-ranges
    • dma-coherent
    • name (deprecated)
    • device_type (deprecated)

No runtime deps