#device-tree #parser #no-alloc

no-std deforest

efficient #![no_std] parser for devicetree blobs

5 unstable releases

0.3.2 Apr 1, 2024
0.3.1 Mar 5, 2024
0.3.0 Feb 13, 2024
0.2.0 Oct 16, 2023
0.1.0 Oct 3, 2023

#458 in Embedded development

Download history 22/week @ 2024-02-08 23/week @ 2024-02-15 21/week @ 2024-02-22 93/week @ 2024-02-29 37/week @ 2024-03-07 3/week @ 2024-03-14 106/week @ 2024-03-28 35/week @ 2024-04-04 1/week @ 2024-04-11

142 downloads per month

MIT license

85KB
2K SLoC

Rust crate deforest

Efficient #![no_std] parser for devicetree blobs compliant (hopefully) with version 0.4 of the specification.

The crate tries to be efficient by avoiding allocations (it can be used without alloc) and only iterating over nodes once, but I have no realistic benchmarks. On the downside, the interface isn't the most ergonomic.

Alternatives

  • fdt-rs: can even build an index to interact with DTBs faster
  • fdt: comes with extra types for a couple of common nodes

License

This project is licensed under the MIT license (LICENSE-MIT or https://opensource.org/license/mit/).


lib.rs:

Efficient #![no_std] parser for devicetree blobs compliant (hopefully) with version 0.4 of the specification.

Dependencies

~1–1.6MB
~31K SLoC