msvc_demangle/
msvc-demangle.rs

1use std::env;
2extern crate msvc_demangler;
3use msvc_demangler::*;
4fn main() {
5    let args: Vec<String> = env::args().collect();
6    if args.len() != 2 {
7        println!("{} <symbol>", args[0]);
8        std::process::exit(1);
9    }
10
11    match demangle(&args[1], DemangleFlags::COMPLETE) {
12        Ok(s) => {
13            println!("{}", s);
14        }
15        Err(err) => {
16            eprintln!("error: {:?}", err);
17            std::process::exit(1);
18        }
19    }
20}