Skip to content

pjmlp/gwc-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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.

Overview

The screenshot below shows how the old demo application used to look like, back in the GNOME 1.x days.

Old version

Starting the application

Now the application looks like the screenshot below thanks to Gtk-rs and Gtk+ 3.0.

New version

Displaying the results

After processing the given file, the results get presented in a similar way like on the old version.

New version

Compiling

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.

Documentation generation

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.

Acknowledgements

Thanks to cmars (Casey Marshall) for his suggestion how to improve IO error handling.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages