#coredump #api #generate #rust

wasm-coredump-builder

Wasm coredump builder API for Rust

17 releases

0.2.2 Dec 31, 2024
0.2.1 Nov 25, 2024
0.1.24 Nov 14, 2024
0.1.22 Aug 7, 2023
0.1.11 Feb 24, 2023

#1238 in WebAssembly

Download history 485/week @ 2024-09-20 421/week @ 2024-09-27 595/week @ 2024-10-04 1142/week @ 2024-10-11 1212/week @ 2024-10-18 1238/week @ 2024-10-25 937/week @ 2024-11-01 791/week @ 2024-11-08 692/week @ 2024-11-15 895/week @ 2024-11-22 402/week @ 2024-11-29 1029/week @ 2024-12-06 446/week @ 2024-12-13 91/week @ 2024-12-20 255/week @ 2024-12-27 364/week @ 2025-01-03

1,262 downloads per month
Used in 2 crates

MIT license

15KB
267 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

~485KB
~12K SLoC