Skip to content

Commit 9bc5f3a

Browse files
authored
Make crate no_std (#78)
2 parents 8bf673e + 57dd0dc commit 9bc5f3a

File tree

5 files changed

+300
-324
lines changed

5 files changed

+300
-324
lines changed

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
[package]
22
authors = ["Markus Stange <mstange@themasta.com>", "Jeff Muizelaar <jrmuizel@gmail.com>"]
33
name = "msvc-demangler"
4-
version = "0.10.1"
4+
version = "0.11.0"
55
keywords = ["demangle", "undecorate", "c-plus-plus", "msvc"]
66
license = "MIT/NCSA"
77
documentation = "https://docs.rs/msvc-demangler/"
88
description = "A rust library that demangles / undecorates C++ symbols mangled by MSVC"
99
repository = "https://github.com/mstange/msvc-demangler-rust"
1010
readme = "README.md"
11+
edition = "2021"
12+
categories = ["no-std"]
1113

1214
[dependencies]
13-
bitflags = "2"
15+
bitflags = { version = "2", default-features = false }
16+
itoa = "1.0"
1417

1518
[[bin]]
1619
name = "undname"

src/bin/undname.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,7 @@ fn main() {
2929
}
3030
let flags = msvc_demangler::DemangleFlags::llvm();
3131
let demangled = msvc_demangler::serialize(&parsed, flags);
32-
match demangled {
33-
Ok(ref string) => println!("{}", string),
34-
Err(err) => {
35-
eprintln!("error: {}", err);
36-
println!("{}", sym);
37-
}
38-
}
32+
println!("{}", demangled);
3933
};
4034

4135
if args.is_empty() {

0 commit comments

Comments
 (0)