{"id":20248230,"url":"https://github.com/rodrigocfd/winsafe-examples","last_synced_at":"2025-10-05T02:43:25.383Z","repository":{"id":146416345,"uuid":"353126276","full_name":"rodrigocfd/winsafe-examples","owner":"rodrigocfd","description":"Examples of native Windows applications written in Rust with WinSafe.","archived":false,"fork":false,"pushed_at":"2025-03-01T13:59:54.000Z","size":1354,"stargazers_count":74,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T15:07:11.687Z","etag":null,"topics":["directx","ffi","gui","native","rust","win32","windows"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/winsafe","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodrigocfd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-30T20:00:56.000Z","updated_at":"2025-04-03T04:47:20.000Z","dependencies_parsed_at":"2023-10-01T18:54:40.079Z","dependency_job_id":"a6a585c0-3a83-43c0-86fe-4c11d369b463","html_url":"https://github.com/rodrigocfd/winsafe-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigocfd%2Fwinsafe-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigocfd%2Fwinsafe-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigocfd%2Fwinsafe-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodrigocfd%2Fwinsafe-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodrigocfd","download_url":"https://codeload.github.com/rodrigocfd/winsafe-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055284,"owners_count":21040157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["directx","ffi","gui","native","rust","win32","windows"],"created_at":"2024-11-14T09:47:15.249Z","updated_at":"2025-10-05T02:43:20.344Z","avatar_url":"https://github.com/rodrigocfd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WinSafe examples\r\n\r\nThis repo contains several examples of native Win32 applications written in [Rust](https://www.rust-lang.org) with [WinSafe](https://github.com/rodrigocfd/winsafe). All examples follow the same program structure, which is the recommended way to build a WinSafe application.\r\n\r\nEach directory is a full application, with is own `Cargo.toml`.\r\n\r\n## Resources\r\n\r\nEach example has a `.res` file with its [application resources](https://en.wikipedia.org/wiki/Resource_(Windows)) (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.\r\n\r\nThe `.res` file is linked into the final `.exe` by the `build.rs`, which is a [Cargo build script](https://doc.rust-lang.org/cargo/reference/build-scripts.html).\r\n\r\n## Examples list\r\n\r\nNote that the order can change with new examples being added.\r\n\r\n| Example | Screenshot |\r\n| - | - |\r\n| 01 [Button click](01_button_click/) | ![Example 01](01_button_click/screen.gif) |\r\n| 02 [Native controls](02_native_controls/) | ![Example 02](02_native_controls/screen.gif) |\r\n| 03 [Dialog resources](03_dialog_resources/) | ![Example 03](03_dialog_resources/screen.gif) |\r\n| 04 [Custom control](04_custom_control/) | ![Example 04](04_custom_control/screen.gif) |\r\n| 05 [Resizable layout](05_resizable_layout/) | ![Example 05](05_resizable_layout/screen.gif) |\r\n| 06 [Tabs](06_tabs/) | ![Example 06](06_tabs/screen.gif) |\r\n| 07 [Video playback](07_video_playback/) | ![Example 07](07_video_playback/screen.gif) |\r\n\r\n## License\r\n\r\nLicensed under [MIT license](https://opensource.org/licenses/MIT), see [LICENSE.md](LICENSE.md) for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigocfd%2Fwinsafe-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigocfd%2Fwinsafe-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigocfd%2Fwinsafe-examples/lists"}