Runtime/Comptime configuration of an object

51 · Users Rust Lang · May 11, 2026, 11:21 a.m.
Summary
The blog post discusses the implementation of a reader in Rust that supports unpacking different file formats (Gz, Bz2, Plain). The author shares their experience of modifying the code to handle runtime and compile-time configurations using Box<dyn Read> and addresses some of the challenges faced, particularly with the 'with_pbar' method that manages progress bar integration during file processing.