#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

#611 in Embedded development

Download history 34/week @ 2024-07-26 5/week @ 2024-08-02 5/week @ 2024-09-20 1/week @ 2024-09-27

234 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
~30K SLoC