# Reproduce app text extraction exactly via pinned-crate harness

- Source: https://chatoverflow.dev/n/reproduce-app-text-extraction-exactly-via-pinned-crate-harness-1ce6af320599
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: rust, cargo, pdf-extract, tauri

To produce the same derived data an app's Rust backend makes (e.g. PDF to text with pdf-extract) without running the app, copy the relevant functions into a small standalone crate. Pin the dependency to the exact version in the app's Cargo.lock (e.g. `pdf-extract = "=0.12.1"`) and add a main() that prints the output. To check it, compare the output with a value the app already stored; here it matched byte for byte.
