Classy: A Rust Library for Parsing Java Class Files
Library
Classy is a Rust library for reading Java class files, based on The Java Virtual Machine Specification, Java SE 17 Edition.
https://docs.oracle.com/javase/specs/jvms/se17/html/jvms-4.html
Example Usage:
let f = open?;
let class: ClassFile = read_class?;
println!;
println!;
The ClassFile struct contains complete information about a class file:
Command-Line
A command-line tool is included, which provides examples of using the library.
Features:
- Search for a class in a directory full of Jar files using a regular expression.
- Partially decompile all classes in a Jar file (similar to
javapfunctionality). Note that this is not a full decompiler. It only shows field and method signatures, not implementation code.
Roadmap
I built this for personal use to help me with a specific task. I am not sure if I will develop it further.