{"id":26116984,"url":"https://github.com/velopack/xdialog-rs","last_synced_at":"2026-02-09T23:32:47.109Z","repository":{"id":249186936,"uuid":"830706604","full_name":"velopack/xdialog-rs","owner":"velopack","description":"A small native-ish cross platform dialogs library with zero runtime dependencies.","archived":false,"fork":false,"pushed_at":"2024-11-21T16:21:31.000Z","size":1050,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T10:38:15.016Z","etag":null,"topics":[],"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/velopack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-07-18T20:17:57.000Z","updated_at":"2025-02-19T04:54:16.000Z","dependencies_parsed_at":"2024-11-19T00:21:34.672Z","dependency_job_id":"1dc0a47f-e684-4da1-b3f9-0ed11afb67db","html_url":"https://github.com/velopack/xdialog-rs","commit_stats":null,"previous_names":["velopack/xdialog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/velopack/xdialog-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velopack%2Fxdialog-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velopack%2Fxdialog-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velopack%2Fxdialog-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velopack%2Fxdialog-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/velopack","download_url":"https://codeload.github.com/velopack/xdialog-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velopack%2Fxdialog-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29285817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T21:57:15.303Z","status":"ssl_error","status_checked_at":"2026-02-09T21:57:11.537Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-03-10T10:53:30.485Z","updated_at":"2026-02-09T23:32:47.095Z","avatar_url":"https://github.com/velopack.png","language":"Rust","readme":"# xdialog\n[![Version](https://img.shields.io/crates/v/xdialog?style=flat-square)](https://crates.io/crates/xdialog)\n[![License](https://img.shields.io/crates/l/xdialog?style=flat-square)](https://github.com/velopack/xdialog/blob/master/LICENSE)\n\nA cross-platform library for displaying native(-ish) dialogs in Rust. This library does not\nuse native system dialogs, but instead creates its own dialog windows which are designed to\nlook and feel like native dialogs. This allows for a simplified API and consistent behavior.\n\nThis is not a replacement for a proper GUI framework. It is meant to be used for CLI / background\napplications which occasionally need to show dialogs (such as alerts, or progress) to the user.\n\nIt's main use-case is for the [Velopack](https://velopack.io) application installation and\nupdate framework.\n\n## Features\n- Cross-platform: works on Windows, MacOS, and Linux\n- Zero dependencies on Windows or MacOS, only requires X11 on Linux.\n- Very small size (as little as 100kb added to your binary with optimal settings)\n- Simple and consistent API across all platforms\n\n## Installation\n\nAdd the following to your `Cargo.toml`:\n```toml\n[dependencies]\nxdialog = \"0\" # replace with the latest version\n```\n\nOr, run the following command:\n```sh\ncargo install xdialog\n```\n\n## Usage\nSince some platforms require UI to be run on the main thread, xdialog expects to own the\nmain thread, and will launch your core application logic in another thread.\n\n```rust\nuse xdialog::*;\n\nfn main() -\u003e i32 {\n  XDialogBuilder::new().run(your_main_logic)\n}\n\nfn your_main_logic() -\u003e i32 {\n\n  // ... do something here\n\n  let should_update_now = show_message_yes_no(\n    \"My App Incorporated\",\n    \"New version available\",\n    \"Would you like to to the new version now?\",\n    XDialogIcon::Warning,\n  ).unwrap();\n\n  if !should_update_now {\n    return -1; // user declined the dialog\n  }\n\n  // ... do something here\n\n  let progress = show_progress(\n    \"My App Incorporated\",\n    \"Main instruction\",\n    \"Body text\",\n    XDialogIcon::Information\n  ).unwrap();\n\n  progress.set_value(0.5).unwrap();\n  progress.set_text(\"Extracting...\").unwrap();\n  std::thread::sleep(std::time::Duration::from_secs(3));\n\n  progress.set_value(1.0).unwrap();\n  progress.set_text(\"Updating...\").unwrap();\n  std::thread::sleep(std::time::Duration::from_secs(3));\n\n  progress.set_indeterminate().unwrap();\n  progress.set_text(\"Wrapping Up...\").unwrap();\n  std::thread::sleep(std::time::Duration::from_secs(3));\n\n  progress.close().unwrap();\n  0 // return exit code\n}\n```\n\nThere are more examples in the `examples` directory.\n```sh\ncargo run --example various_options\n```\n\n## Build Dependencies\nThis library uses [fltk-rs](https://github.com/fltk-rs/fltk-rs) for it's primary backend.\nBy default, [fltk-rs](https://github.com/fltk-rs/fltk-rs) provides pre-compiled binaries for\nmost platforms (win-x64, linux-x64, linux-arm64, mac-x64, mac-arm64).\n\nIf you are compiling for a platform that does not have pre-compiled binaries, you will need\nto disable the `fltk-bundled` feature and ensure that cmake is installed on your system.\n\n```toml\n[dependencies]\nxdialog = { version = \"0\", default-features = false }\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvelopack%2Fxdialog-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvelopack%2Fxdialog-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvelopack%2Fxdialog-rs/lists"}