Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ use thiserror::Error;
use crate::mapper::{format_cause, format_frames, format_throwable};
use crate::{java, stacktrace, DeobfuscatedSignature, StackFrame, StackTrace, Throwable};

pub use raw::ProguardCache;
pub use raw::{ProguardCache, PRGCACHE_VERSION};

/// Errors returned while loading/parsing a serialized [`ProguardCache`].
///
Expand Down
1 change: 1 addition & 0 deletions src/cache/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub(crate) const PRGCACHE_MAGIC: u32 = u32::from_le_bytes(PRGCACHE_MAGIC_BYTES);
/// The byte-flipped magic, which indicates an endianness mismatch.
pub(crate) const PRGCACHE_MAGIC_FLIPPED: u32 = PRGCACHE_MAGIC.swap_bytes();

/// The current version of the ProguardCache format.
pub const PRGCACHE_VERSION: u32 = 2;

/// The header of a proguard cache file.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod mapper;
mod mapping;
mod stacktrace;

pub use cache::{CacheError, CacheErrorKind, ProguardCache};
pub use cache::{CacheError, CacheErrorKind, ProguardCache, PRGCACHE_VERSION};
pub use mapper::{DeobfuscatedSignature, ProguardMapper, RemappedFrameIter};
pub use mapping::{
LineMapping, MappingSummary, ParseError, ParseErrorKind, ProguardMapping, ProguardRecord,
Expand Down
Loading