mokapot
1.0.0
Mokapot是用Rust編寫的Java字節碼分析庫。
警告
API穩定性:該項目處於早期開發階段,破壞變化可能會在v1.0.0之前發生。目前不建議將此項目用於生產。
已發布版本的文檔可在docs.r.r上找到。最新提交的文檔可在github.io上獲得
在項目的根目錄中運行以下命令。
cargo add mokapot另外,要遵循最新的提交版本,請改用以下命令。在構建項目之前,請運行cargo update以獲取最新的提交。
cargo add --git https://github.com/henryhchchc/mokapot.git mokapot use mokapot :: jvm :: class :: Class ;
fn parse_class ( ) -> Result < Class , Box < dyn std :: error :: Error > > {
let reader : std :: io :: Read = todo ! ( "Some reader for the byte code" ) ;
let class = Class :: from_reader ( reader ) ? ;
Ok ( class )
}Mokair是Mokapot中JVM字節碼的中間表示。要了解更多信息,請參考文檔/mokair.md
確保已安裝以下工具:
編譯項目並使用以下命令運行測試。
cargo build --all-features
cargo test --all-features涼爽的。歡迎捐款。有關更多信息,請參見貢獻指南。