Skip to main content

scan_jar

Function scan_jar 

Source
pub fn scan_jar(jar_path: &Path) -> ClasspathResult<Vec<ClassStub>>
Expand description

Scan a JAR file (ZIP archive) and parse all .class entries into ClassStub records.

Uses rayon for parallelism across JARs (called by the outer loop), but processes entries within a single JAR sequentially since ZipArchive is not Send.

§Security limits

  • Entry count limit: 100,000 per JAR
  • Uncompressed size limit: 2 GB per JAR
  • Per-class errors are logged and skipped, never fail the whole JAR

§Errors

Returns ClasspathError::JarReadError if the JAR cannot be opened or if it exceeds security limits.