#unsafe #hex-dump #no-std

no-std memdump

Handy unsafe no_std memory dumper utility library written in Rust

2 releases

0.1.3 Apr 13, 2023
0.1.2 Apr 12, 2023
0.1.1 Apr 12, 2023
0.1.0 Apr 12, 2023

#22 in #hex-dump

MIT license

6KB
64 lines

memdump-rs

Handy unsafe memory dumper utility library written in Rust.

Usage example

const FOO: &str = "Hello, world!\n What is your name?";

fn example_func() {
    unsafe {
        memdump(FOO.as_ptr(), FOO.len(), |s| println!("{}", s));
    }
}

No runtime deps