#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

#1183 in WebAssembly

Download history 704/week @ 2024-10-02 631/week @ 2024-10-09 1567/week @ 2024-10-16 1188/week @ 2024-10-23 883/week @ 2024-10-30 991/week @ 2024-11-06 866/week @ 2024-11-13 809/week @ 2024-11-20 430/week @ 2024-11-27 977/week @ 2024-12-04 525/week @ 2024-12-11 136/week @ 2024-12-18 205/week @ 2024-12-25 402/week @ 2025-01-01 559/week @ 2025-01-08 719/week @ 2025-01-15

1,888 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