Sha256: 10891bbfe65d1e03e5a34a02fa0acd0abe6286efe15d1237b130616f692caa7c

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

use cpp_demangle::Symbol;

pub fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mangled = b"_ZN5space3fooEibc";

    let sym = Symbol::new(&mangled[..])?;
    let demangled = sym.to_string();

    println!("{}", demangled);

    assert_eq!(demangled, "space::foo(int, bool, char)");

    Ok(())
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/cpp_demangle-0.4.4/examples/simple.rs
wasmtime-28.0.0 ./ext/cargo-vendor/cpp_demangle-0.4.4/examples/simple.rs
wasmtime-27.0.0 ./ext/cargo-vendor/cpp_demangle-0.4.4/examples/simple.rs
wasmtime-26.0.0 ./ext/cargo-vendor/cpp_demangle-0.4.4/examples/simple.rs