Skip to content

Commit 9b2445f

Browse files
committed
chore: pretty print example + update Cargo.toml
1 parent 0914d35 commit 9b2445f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "fdt"
33
version = "0.2.0-alpha1"
4-
authors = ["Wesley Norris <repnop@outlook.com>"]
4+
authors = ["Wesley Norris <repnop@repnop.dev>"]
55
edition = "2021"
66

77
repository = "https://github.com/repnop/fdt"

examples/pretty_print.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
static MY_FDT: &[u8] = include_bytes!("../dtb/test.dtb");
2+
3+
fn main() {
4+
let fdt = fdt::Fdt::new_unaligned(MY_FDT).unwrap();
5+
println!("{fdt}");
6+
}

0 commit comments

Comments
 (0)