This is a Rust port of the demo application I have written in C++ for an article printed on the 2002's May issue of C/C++ Users Journal, about introduction to programming Gnomemm applications.
The purpose was to get a grasp of how does it feel to use Rust for writting Gtk+ applications, specially given that GNOME team seems to be exploring the idea to adopt Rust to the set of main supported languages.
The screenshot below shows how the old demo application used to look like, back in the GNOME 1.x days.
Now the application looks like the screenshot below thanks to Gtk-rs and Gtk+ 3.0.
After processing the given file, the results get presented in a similar way like on the old version.
The application was developed with Rust 1.18, maybe it can be compiled with older versions, but I haven't tested.
To compile just use cargo as usual.
Given that cargo doesn't have an easy way to generate documentation for all types, including the private ones, the shell script gen-docs.sh takes care of it.
Thanks to cmars (Casey Marshall) for his suggestion how to improve IO error handling.