jclass 0.1.7

a simple lib for java class file parse or edit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// use std::env;
// use std::path::PathBuf;
//
// const CLASSFILE_CONSTANTS_FILE: &str = "_classfile_constants.rs";
//
// fn main() {
//     let header_path = "include/classfile_constants.h";
//     let bindings = bindgen::Builder::default()
//         .header(header_path)
//         .generate()
//         .expect("无法生成头文件对应Rust代码");
//
//     let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
//     bindings
//         .write_to_file(out_path.join(CLASSFILE_CONSTANTS_FILE))
//         .expect(&format!("无法写出生成的Rust代码:{}", &out_path.to_str().unwrap()));
// }