#coredump #api #generate #rust

wasm-coredump-builder

Wasm coredump builder API for Rust

15 releases

new 0.1.24 Nov 14, 2024
0.1.23 Nov 14, 2024
0.1.22 Aug 7, 2023
0.1.20 Jul 27, 2023
0.1.11 Feb 24, 2023

#1107 in WebAssembly

Download history 1048/week @ 2024-07-25 264/week @ 2024-08-01 526/week @ 2024-08-08 354/week @ 2024-08-15 471/week @ 2024-08-22 339/week @ 2024-08-29 358/week @ 2024-09-05 437/week @ 2024-09-12 456/week @ 2024-09-19 273/week @ 2024-09-26 700/week @ 2024-10-03 797/week @ 2024-10-10 1455/week @ 2024-10-17 1294/week @ 2024-10-24 861/week @ 2024-10-31 799/week @ 2024-11-07

4,683 downloads per month
Used in 2 crates

MIT license

14KB
241 lines

Rust API for building Wasm Coredump.

Examples

let mut coredump_builder = wasm_coredump_builder::CoredumpBuilder::new()
        .executable_name("/usr/bin/true.exe");

{
    let mut thread_builder = wasm_coredump_builder::ThreadBuilder::new()
        .thread_name("main");

    let coredump_frame = wasm_coredump_builder::FrameBuilder::new()
        .codeoffset(123)
        .funcidx(6)
        .build();
    thread_builder.add_frame(coredump_frame);

    coredump_builder.add_thread(thread_builder.build());
}

let coredump = coredump_builder.serialize().unwrap();

Dependencies

~460KB
~11K SLoC