proguard 5.10.3

Basic proguard mapping file handling for Rust
Documentation
//! This crate implements handling of proguard mapping files.
//!
//! The main use case is to re-map classes or complete stack frames, but it can
//! also be used to parse a proguard mapping line-by-line.
//!
//! The `uuid` feature also allows getting the UUID of the proguard file.
//!
//! # Examples
//!
//! ```
//! let mapping = r#"
//! android.arch.core.internal.SafeIterableMap -> a.a.a.b.c:
//!     13:13:java.util.Map$Entry eldest():168:168 -> a
//! "#;
//! let mapper = proguard::ProguardMapper::from(mapping);
//!
//! // re-mapping a classname
//! assert_eq!(
//!     mapper.remap_class("a.a.a.b.c"),
//!     Some("android.arch.core.internal.SafeIterableMap"),
//! );
//!
//! // re-map a stack frame
//! assert_eq!(
//!     mapper
//!         .remap_frame(&proguard::StackFrame::new("a.a.a.b.c", "a", 13))
//!         .collect::<Vec<_>>(),
//!     vec![proguard::StackFrame::with_file(
//!         "android.arch.core.internal.SafeIterableMap",
//!         "eldest",
//!         168,
//!         "SafeIterableMap.java"
//!     )],
//! );
//! ```

#![warn(missing_docs)]

mod builder;
mod cache;
mod java;
mod mapper;
mod mapping;
mod stacktrace;
mod utils;

pub use cache::{CacheError, CacheErrorKind, ProguardCache, PRGCACHE_VERSION};
pub use mapper::{DeobfuscatedSignature, ProguardMapper, RemappedFrameIter};
pub use mapping::{
    LineMapping, MappingSummary, ParseError, ParseErrorKind, ProguardMapping, ProguardRecord,
    ProguardRecordIter,
};
pub use stacktrace::{StackFrame, StackTrace, Throwable};
pub use utils::class_name_to_descriptor;