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.
xdialog
A cross-platform library for displaying native(-ish) dialogs in Rust. This library does not use native system dialogs, but instead creates its own dialog windows which are designed to look and feel like native dialogs. This allows for a simplified API and consistent behavior.
This is not a replacement for a proper GUI framework. It is meant to be used for CLI / background applications which occasionally need to show dialogs (such as alerts, or progress) to the user.
It's main use-case is for the Velopack application installation and update framework.
Features
- Cross-platform: works on Windows, MacOS, and Linux
- Zero dependencies on Windows or MacOS, only requires X11 on Linux.
- Very small size (as little as 100kb added to your binary with optimal settings)
- Simple and consistent API across all platforms
Installation
Add the following to your Cargo.toml:
[]
= "0" # replace with the latest version
Or, run the following command:
Usage
Since some platforms require UI to be run on the main thread, xdialog expects to own the main thread, and will launch your core application logic in another thread.
use *;
There are more examples in the examples directory.
Build Dependencies
This library uses fltk-rs for it's primary backend. By default, fltk-rs provides pre-compiled binaries for most platforms (win-x64, linux-x64, linux-arm64, mac-x64, mac-arm64).
If you are compiling for a platform that does not have pre-compiled binaries, you will need
to disable the fltk-bundled feature and ensure that cmake is installed on your system.
[]
= { = "0", = false }