#swift #demangle #run-time #cli

bin+lib swift-demangle

A Swift Demangle function in Rust

2 releases

0.0.2 Oct 4, 2024
0.0.1 Aug 5, 2024

#1290 in Command line utilities

MIT license

5KB
81 lines

swift-demangle

A Swift Demangle function in Rust

Installation

cargo add swift-demangle

API usage

use swift_demangle::demangle;

demangle("$sSa"); // returns "Swift.Array"

CLI usage

[!IMPORTANT]
It's important to escape $ in your shell interface.

cargo run "_\$s7SwiftUI12__GridLayoutVAA014_VariadicView_F4RootAAWP"
# protocol witness table for SwiftUI.__GridLayout : SwiftUI._VariadicView_ViewRoot in SwiftUI
# Swift.Array

Licence

MIT

© 2024, Eugene Hauptmann

Dependencies