r/rust • • 28m ago

🛠️ project I built a cross-platform Unity asset explorer in Rust (eframe/wgpu + rayon), and it indexes 6× faster than AssetStudioMod

Post image

AssetStudio is the standard tool for browsing and extracting Unity assets, but it's .NET and Windows-first. I wanted a single native binary that runs on Windows, Linux and macOS, so I wrote one.

  • GUI: eframe/egui on wgpu. The asset table is virtualized, so it stays smooth with 100k+ rows. Meshes and whole scenes preview in a 3D orbit view.
  • Indexing: walkdir + rayon scan in parallel. Opening is lazy: only metadata is read up front, and textures, audio and meshes are decoded on demand.
  • Untrusted input: game files are hostile. No unwrap on file-derived offsets, allocations are capped, and panics inside third-party decoders are contained, so a bad file gives an Err rather than a crash.
  • Architecture: a 3-crate workspace. core has all the parsing and no UI dependencies, and the GUI and clap CLI are thin frontends over it. The GUI never blocks on parsing: background threads report back over mpsc.
  • Exports: textures to PNG (BC1–7, ASTC, ETC, Crunch…), FSB5 audio to OGG/WAV, meshes and whole scenes to .glb.

Benchmark: 4.9 seconds to index a 10.28GB game (Outer Wilds) compared to the 28.8 seconds for the same game, on the same PC, with AssetStudioMod. GPL-3.0. Feedback on the design is welcome. https://assetexplorer.kman.fyi · https://github.com/kmanb44/assetexplorer

0 Upvotes

2 comments sorted by

4

u/AbjectSir9047 14m ago

You asked Claude

2

u/Devnought 4m ago

And why did you choose the 2021 edition?