基于派生宏的代码实例
Cargo.toml 文件
[package]
name = "demo"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
native-windows-gui = "*"
native-windows-derive =
上 github 下载,网址为 https://github.com/gabdube/native-windows-gui。
上面有安装说明。按说明方法,老是提示权限不够。配置了 ssh 公钥证书,仍然不行。请教同事后得知,可能是网络传输问题,在国内访问github经常会出现这类问题。于是想办法通过其他方法下载了压缩包。具体用法如下:
Native Windows GUI
欢迎使用 Native Windows GUI(又名NWG)。用于在 Microsoft Windows 桌面上开发