{"id":13439718,"url":"https://github.com/saurvs/nfd-rs","last_synced_at":"2025-12-12T14:40:03.903Z","repository":{"id":53115286,"uuid":"53055257","full_name":"saurvs/nfd-rs","owner":"saurvs","description":"OS-native file dialogs on Linux, OS X and Windows","archived":false,"fork":false,"pushed_at":"2023-03-14T22:24:19.000Z","size":279,"stargazers_count":157,"open_issues_count":13,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-20T00:50:48.043Z","etag":null,"topics":["cross-platform","dialog-box"],"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/saurvs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-03-03T14:13:23.000Z","updated_at":"2025-06-29T09:18:53.000Z","dependencies_parsed_at":"2024-06-19T20:03:22.466Z","dependency_job_id":"bb588d27-fe2f-468c-8118-3332215cb8ab","html_url":"https://github.com/saurvs/nfd-rs","commit_stats":{"total_commits":24,"total_committers":6,"mean_commits":4.0,"dds":0.5,"last_synced_commit":"07578c5fea4d7b1f35fbf128f04b6264c3bf3c5a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saurvs/nfd-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurvs%2Fnfd-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurvs%2Fnfd-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurvs%2Fnfd-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurvs%2Fnfd-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saurvs","download_url":"https://codeload.github.com/saurvs/nfd-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurvs%2Fnfd-rs/sbom","scorecard":{"id":801918,"data":{"date":"2025-08-11","repo":{"name":"github.com/saurvs/nfd-rs","commit":"07578c5fea4d7b1f35fbf128f04b6264c3bf3c5a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":5,"reason":"Found 6/12 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T10:44:01.732Z","repository_id":53115286,"created_at":"2025-08-23T10:44:01.732Z","updated_at":"2025-08-23T10:44:01.732Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27684883,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cross-platform","dialog-box"],"created_at":"2024-07-31T03:01:16.492Z","updated_at":"2025-12-12T14:40:03.872Z","avatar_url":"https://github.com/saurvs.png","language":"Rust","readme":"# nfd-rs [![](http://meritbadge.herokuapp.com/nfd)](https://crates.io/crates/nfd) [![](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/saurvs/nfd-rs/blob/master/LICENSE.md)\n\n`nfd-rs` is a Rust binding to the library [nativefiledialog](https://github.com/mlabbe/nativefiledialog), that provides a convenient cross-platform interface to opening file dialogs on Linux, OS X and Windows.\n\nThis crate has been tested on Mac, Window and Linux (Ubuntu 14.04) and supports single/mutliple and save dialogs, notice APIs may break with newer versions.\n\n## Usage\n\n* Add the dependency `nfd` in your ```Cargo.toml```\n  ```toml\n  [dependencies]\n  nfd = \"0.0.4\"\n  ```\n\n* Open a single file dialog\n  ```rust\n  extern crate nfd;\n\n  use nfd::Response;\n\n  fn main() {\n\n    let result = nfd::open_file_dialog(None, None).unwrap_or_else(|e| {\n    \tpanic!(e);\n    });\n\n    match result {\n        Response::Okay(file_path) =\u003e println!(\"File path = {:?}\", file_path),\n        Response::OkayMultiple(files) =\u003e println!(\"Files {:?}\", files),\n        Response::Cancel =\u003e println!(\"User canceled\"),\n    }\n  }\n  ```\n\n* Open a multi file dialog using builder with jpg files as filter\n  ```rust\n  extern crate nfd;\n\n  use nfd::Response;\n\n  fn main() {\n\n    let result = nfd::dialog_multiple().filter(\"jpg\").open().unwrap_or_else(|e| {\n    \tpanic!(e);\n    });\n\n    match result {\n        Response::Okay(file_path) =\u003e println!(\"File path = {:?}\", file_path),\n        Response::OkayMultiple(files) =\u003e println!(\"Files {:?}\", files),\n        Response::Cancel =\u003e println!(\"User canceled\"),\n    }\n  }\n  ```\n\n## Screenshot\n\n![Cocoa on El Capitan](screenshots/cocoa_el_capitan.png?raw=true)\n","funding_links":[],"categories":["Libraries","Rust","库 Libraries","库"],"sub_categories":["GUI","GUI GUI","图形用户界面 GUI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurvs%2Fnfd-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaurvs%2Fnfd-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurvs%2Fnfd-rs/lists"}