Ka-Pi, known as coffee pronounced in Min Nan, which has multiple usages and an indispensable place in not only modern society, but also computer science.
Ka-Pi offers several essential modules relates to JVM ecosystem:
cfsp
- A general purpose class file parser that transform class file into nodes described in
The Java® Virtual Machine Specification Java SE 20 EditionTo parse a class file using cfsp
, you'll need to enable feature cfsp
first:
toml
ka_pi = { version = "...", features = ["cfsp"] }
Then, you'll be able to use class file parser in your own project:
```no_run
let mut file = File::open("Main.class").unwrap(); let class = toclass(&mut file, ParsingOption::default().parseattribute()).unwrap();
println!("{:?}", class);
```
There are other related jvm projects developed by me may help the production of JVM projects along with Ka-Pi: - frape - A direct interop bridge between Rust and Java reflection library in low communication cost. (No releases yet.) - jars - A simple jar extraction library.
Kyle Lin (ChAoS-UnItY)
Copyright © 2023, Kyle Lin (ChAoS-UnItY). Released under the MIT License.