#coredump #api #generate #rust

wasm-coredump-builder

Wasm coredump builder API for Rust

16 releases

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

#1111 in WebAssembly

Download history 510/week @ 2024-08-05 288/week @ 2024-08-12 625/week @ 2024-08-19 179/week @ 2024-08-26 388/week @ 2024-09-02 339/week @ 2024-09-09 403/week @ 2024-09-16 418/week @ 2024-09-23 618/week @ 2024-09-30 422/week @ 2024-10-07 1497/week @ 2024-10-14 931/week @ 2024-10-21 1166/week @ 2024-10-28 1132/week @ 2024-11-04 924/week @ 2024-11-11 756/week @ 2024-11-18

4,016 downloads per month
Used in 2 crates

MIT license

14KB
253 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