Skip to content

Commit

Permalink
Make crate no_std (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstange authored Feb 6, 2025
2 parents 8bf673e + 57dd0dc commit 9bc5f3a
Show file tree
Hide file tree
Showing 5 changed files with 300 additions and 324 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[package]
authors = ["Markus Stange <mstange@themasta.com>", "Jeff Muizelaar <jrmuizel@gmail.com>"]
name = "msvc-demangler"
version = "0.10.1"
version = "0.11.0"
keywords = ["demangle", "undecorate", "c-plus-plus", "msvc"]
license = "MIT/NCSA"
documentation = "https://docs.rs/msvc-demangler/"
description = "A rust library that demangles / undecorates C++ symbols mangled by MSVC"
repository = "https://github.com/mstange/msvc-demangler-rust"
readme = "README.md"
edition = "2021"
categories = ["no-std"]

[dependencies]
bitflags = "2"
bitflags = { version = "2", default-features = false }
itoa = "1.0"

[[bin]]
name = "undname"
Expand Down
8 changes: 1 addition & 7 deletions src/bin/undname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ fn main() {
}
let flags = msvc_demangler::DemangleFlags::llvm();
let demangled = msvc_demangler::serialize(&parsed, flags);
match demangled {
Ok(ref string) => println!("{}", string),
Err(err) => {
eprintln!("error: {}", err);
println!("{}", sym);
}
}
println!("{}", demangled);
};

if args.is_empty() {
Expand Down
Loading

0 comments on commit 9bc5f3a

Please sign in to comment.