libnvdialog.
This is a Rust library that provides a safe and simple interface to nvdialog in Rust. This is not a Rust-only library; It will still try to link into the host library and panic otherwise. There may be better libraries out there if that's what you're looking for.
Add the following to your Cargo.toml
file:
toml
[dependencies]
nvdialog = "0.1.0"
```rust /* Importing the library */ extern crate nvdialog; use nvdialog::NvDialogContext;
fn main() { /* Initializing the library */ let nvddialogctx = NvdialogContext::new().init();
/* And creating the dialog */
nvd_dialog_ctx.messagebox(
"Hello world from Rust !",
"This is a simple example in Rust using the nvdialog crate."
)
} ```