This repo contains several examples of native Win32 applications written in Rust with WinSafe. All examples follow the same program structure, which is the recommended way to build a WinSafe application.
Each directory is a full application, with is own Cargo.toml.
Each example has a .res file with its application resources (manifests, icons, dialogs and so on). You can edit the .res file with any resource editor, or even generate your own .res by compiling a .rc script.
The .res file is linked into the final .exe by the build.rs, which is a Cargo build script.
Note that the order can change with new examples being added.
| Example | Screenshot |
|---|---|
| 01 Button click | ![]() |
| 02 Native controls | ![]() |
| 03 Dialog resources | ![]() |
| 04 Custom control | ![]() |
| 05 Resizable layout | ![]() |
| 06 Tabs | ![]() |
| 07 Video playback | ![]() |
Licensed under MIT license, see LICENSE.md for details.






