{"id":17691198,"url":"https://github.com/tseli0s/nvdialog-rs","last_synced_at":"2025-07-22T21:36:26.327Z","repository":{"id":65543285,"uuid":"594404029","full_name":"tseli0s/nvdialog-rs","owner":"tseli0s","description":"Rust bindings to NvDialog, a C library to create modal dialogs and notifications using the system's API.","archived":false,"fork":false,"pushed_at":"2024-04-30T08:27:38.000Z","size":120,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T19:13:54.255Z","etag":null,"topics":["api","bindings","dialog","dialogs","nvdialog","rust"],"latest_commit_sha":null,"homepage":"","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/tseli0s.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","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":"2023-01-28T12:58:36.000Z","updated_at":"2024-11-08T04:57:16.000Z","dependencies_parsed_at":"2024-10-24T14:32:43.606Z","dependency_job_id":"33a503e1-736a-4dce-ad14-553ad6cbb8a4","html_url":"https://github.com/tseli0s/nvdialog-rs","commit_stats":null,"previous_names":["androgr/nvdialog-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseli0s%2Fnvdialog-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseli0s%2Fnvdialog-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseli0s%2Fnvdialog-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseli0s%2Fnvdialog-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tseli0s","download_url":"https://codeload.github.com/tseli0s/nvdialog-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253858687,"owners_count":21974976,"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":["api","bindings","dialog","dialogs","nvdialog","rust"],"created_at":"2024-10-24T12:07:51.360Z","updated_at":"2025-05-13T02:27:43.727Z","avatar_url":"https://github.com/tseli0s.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" style=\"padding-top: 25px;\"\u003e\n        \u003cimg src=\"assets/logo.svg\" width=\"256px\"\u003e\n        \u003ch1\u003envdialog-rs: Safe, elegant Rust bindings for \u003ca href=\"https://github.com/tseli0s/nvdialog\"\u003eNvDialog\u003c/a\u003e\u003c/h1\u003e\n        \u003cp\u003e\n        `nvdialog-rs` provides high-level Rust bindings to the libnvdialog library, enabling developers to easily integrate native dialog boxes into their applications. This crate eliminates the complexity of working directly with C pointers, ensuring a safe and ergonomic Rust interface that allows Rust projects to safely use the libnvdialog library.\n        \u003c/p\u003e\n        \u003cp\u003e\n        For your convenience, libnvdialog is built and linked along with the crate and packaged as a static library along with your application.\n        The heavy work is done by the \u003ca href=\"./nvdialog-sys/\"\u003e\u003ccode\u003envdialog-sys\u003c/code\u003e\u003c/a\u003e crate which provides a bridge between the C and Rust projects. This means that you won't need to ship a copy of NvDialog along with your application.\n        \u003c/p\u003e\n        \u003cimg src=\"https://img.shields.io/crates/v/nvdialog-rs?style=flat-square\"\u003e\n        \u003cimg src=\"https://img.shields.io/docsrs/nvdialog-rs?label=Documentation\u0026style=flat-square\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/tseli0s/nvdialog-rs?style=flat-square\"\u003e\n\u003c/div\u003e\n\n# Features\n- **Rust Safety**: Enjoy the power of NvDialog with the full safety and ergonomics of Rust.\n- **Native Dialogs**: Leverage your OS's native API to create platform-specific dialogs (e.g., file pickers, notifications, etc.).\n- **Comprehensive Dialog Support**: From file pickers to custom dialog boxes, nvdialog-rs supports the full range of dialog types provided by NvDialog.\n- **Minimal Overhead**: Designed for efficiency with minimal performance impact.\n- **Simple API**: The crate provides an easy, human-readable API to interact with libnvdialog.\n- **Light Dependency**: Only one tiny dependency—no unnecessary bloat.\n\n# Installation and usage\nTo add `nvdialog-rs` to your project, simply include it in your Cargo.toml file:\n```toml\n[dependencies]\nnvdialog-rs = \"0.3.1\"\n```\n\n# Example\n```rust\nextern crate nvdialog_rs;\nuse nvdialog_rs::DialogBox;\nuse nvdialog_rs::DialogType;\n\nfn main() {\n        /* Initialize the library. This corresponds to `nvd_init` */\n        nvdialog_rs::init().expect(\"Failed to initialize NvDialog\");\n\n        /* Creating the dialog box. */\n        DialogBox::new(\n                \"Hello from Rust!\", /* Title of the dialog */\n                /* Message of the dialog */\n                \"This dialog has been created using Rust and NvDialog bindings to the language.\",\n                /* See documentation for more */\n                DialogType::Simple\n        ).expect(\"Couldn't create dialog\");\n         .show();\n}\n```\nIn just a few lines of code, you can create and display a dialog with a native look and feel on your system. The library is designed to minimize boilerplate and ensure a smooth user experience.\n\n# License\nThis library is licensed under the MIT License:\n```\nThe MIT License (MIT)\nCopyright © 2022-2025 Aggelos Tselios\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n```\n\n# Contributing\nWe welcome contributions to `nvdialog-rs!` Whether you're reporting bugs, suggesting features, or submitting code improvements, your input is valuable:\n\n- Fork the repository.\n- Create a new branch for your changes.\n- Submit a pull request with a clear description of your changes and their purpose.\n\n# Support\nIf you encounter any issues or have questions, please feel free to open an issue in the GitHub repository. We also encourage you to check the documentation for detailed information on how to use the crate.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftseli0s%2Fnvdialog-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftseli0s%2Fnvdialog-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftseli0s%2Fnvdialog-rs/lists"}