jimage_rs/
lib.rs

1//! # jimage-rs
2//! A fast and efficient Rust library for working with `jimage` files used by the Java Platform Module System.
3//! ## Example
4//! ```rust
5//! use std::env;
6//! use std::path::PathBuf;
7//! use jimage_rs::JImage;
8//!
9//! fn main() -> Result<(), Box<dyn std::error::Error>> {
10//!     let path = PathBuf::from(env::var("JAVA_HOME")?)
11//!         .join("lib")
12//!         .join("modules");
13//!     let jimage = JImage::open(path)?;
14//!     match jimage.find_resource("/java.base/java/lang/String.class")? {
15//!         Some(resource) => println!("Resource found: {:?}", resource),
16//!         None => println!("Resource not found"),
17//!     }
18//!
19//!     Ok(())
20//! }
21//! ```
22mod bytes_utils;
23pub mod error;
24mod header;
25pub mod jimage;
26mod resource_header;
27pub use jimage::JImage;