相较于Origin分支,我尤其解决了rfd在MacOS操作系统内,从cocoa的appKit上下文外(包括“事件循环”与“主窗体”),凭空弹出NSAlert消息对话框不能自动收起的缺陷。比如,从命令行上下文(在这,既没事件循环,更无主窗体)弹出的【通知消息(模态)对话框】,在点击OK按钮后,无法自动收起且进入无响应状态。我是在给公司技术团队制作生产力工具过程中遇到此问题 — 伤害性不大,恶心度很高。这么一比还是Win32的COM ABI更好用,没那么多技术细节的坑要踩。希望华为鸿蒙的N-API或NDK应用程序二进制接口不会出现类似的坑。
点击按钮之后,【通知消息(模态)对话框】真的会被折叠收起。
简单地讲,按钮的本文标签不支持【中文】,虽然标题与正文都能正常地显示中文字符。
Rusty File Dialogs is a cross platform Rust library for using native file open/save dialogs. It provides both asynchronous and synchronous APIs. Supported platforms:
- Windows
- macOS
- Linux & BSDs (GTK3 or XDG Desktop Portal)
- WASM32 (async only)
Refer to the documentation for more details.
Please refer to Linux & BSD backends for information about the needed dependencies to be able to compile on Linux.

