Crates.io | nvdialog-rs |
lib.rs | nvdialog-rs |
version | 0.1.0 |
source | src |
created_at | 2023-01-28 12:59:09.59603 |
updated_at | 2023-03-26 19:06:39.033728 |
description | High-level Rust bindings for NvDialog |
homepage | |
repository | https://github.com/AndroGR/nvdialog-rs.git |
max_upload_size | |
id | 770333 |
size | 73,724 |
This crate offers Rust bindings to NvDialog and abstracts away the pointers and other nasty stuff in favor of Rust principles. This crate will NOT build NvDialog manually. You should have a build of NvDialog available in your system at runtime or package it with your application.
The nvdialog
crate (Which I also created) has been deprecated and replaced by this crate, which is much more minimal and easy to use. If you have been using the former, immediately switch to this one.
extern crate nvdialog_rs;
use nvdialog_rs::DialogBox;
use nvdialog_rs::DialogType;
fn main() {
/* Initialize the library. This corresponds to `nvd_init` */
nvdialog_rs::init();
/* Creating the dialog box. */
let dialog_box = DialogBox::new(
"Hello from Rust!", /* Title of the dialog */
/* Message of the dialog */
"This dialog has been created using Rust and NvDialog bindings to the language.",
/* See documentation for more */
DialogType::Simple
);
/* Showing the dialog box. */
dialog_box.show();
}
rustc
support:Here is a table with supported versions of rustc
(The Rust compiler).
You can also use older versions however you may get error messages.
Version | Crate Version | Supported |
---|---|---|
1.35.0> | 0.1.0-rc1 | ❗ |
1.45.0> | 0.1.0-rc1 | ❗ |
1.55.0> | 0.1.0-rc1 | ❗ |
current | 0.1.0-rc1 | ✅ |
nightly | 0.1.0-rc1 | ✅ |
This library is licensed under the MIT License:
The MIT License (MIT)
Copyright © 2022 Aggelos Tselios and contributors on NvDialog.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.