docs.rs failed to build winsafe-0.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
winsafe-0.0.25
WinSafe
Win32 GUI and related APIs in safe, idiomatic Rust.
WinSafe has:
- high-level structs to build native Win32 GUI applications;
- low-level Win32 API constants, functions and structs related to GUI.
If you're looking for a comprehensive Win32 coverage, take a look at winapi or windows crates, which are unsafe, but have everything.
Documentation for the WinSafe master
branch: rodrigocfd.github.io/winsafe/winsafe
Current status
This crate is still in early alpha stage. Below is an estimated progress of feature groups:
Feature group | Estimated progress |
---|---|
User windows (main, modal and control) | |
Native controls | |
Window messages | |
Overall Win32 APIs |
Example
Note: You can find several examples in the dedicated repo: github.com/rodrigocfd/winsafe-examples
First, put this in your Cargo.toml
:
[]
= "0.0.2"
WinSafe allows you to create windows in two ways:
- programmatically defining parameters; or
- loading resource dialogs from
.res
or.rc
files.
The example below creates a window with a button programmatically. Note how the click event is handled with a closure:
use ;
License
Licensed under MIT license, see LICENSE.md for details.