Crates.io | dtb_parser |
lib.rs | dtb_parser |
version | 0.2.3 |
source | src |
created_at | 2022-08-21 13:34:07.352462 |
updated_at | 2023-08-20 14:20:10.358212 |
description | no std but alloc depended device tree blob parsing lib |
homepage | |
repository | https://github.com/d3ara1n/dtb_parser |
max_upload_size | |
id | 649770 |
size | 44,274 |
pub const BLOB: &[u8] = include_bytes!("device.dtb");
fn main() {
let tree = DeviceTree::from_bytes(BLOB).unwrap();
println!("{}", tree);
assert!(!matches!(tree.find_node("/soc/pci@30000000"), None));
}
#<specifier>-cells
)