2个版本
新版本 0.0.2 | 2024年8月25日 |
---|---|
0.0.1 | 2024年7月2日 |
#98 in #gnome
96 每月下载量
51KB
779 代码行
libphosh-rs
phosh的Rust绑定
开发
您需要安装以下软件
- Rust
xmlstarlet
- Meson
- 所有Phosh构建依赖项
更新introspection XML
如果上游libphosh introspection Phosh-0.gir
XML已更改,请运行以下命令
make Phosh-0.gir
Phosh的main
分支将作为Meson子项目获取,introspection XML将被重新生成,并将结果复制到./Phosh-0.gir
。您应该将更改提交到此存储库。
更新绑定
如果您已更新introspection XML或更改了Gir.toml
文件,请运行
make
请注意,您不应提交对NM-1.0.gir
或Phosh-0.gir
所做的更改。
示例
有两个示例展示了libphosh-rs的使用方法
- hello-world.rs 包含启动shell所需的最小代码,可以像这样运行
WLR_BACKENDS=wayland phoc -E target/debug/examples/hello-world
- custom-shell-and-lockscreen.rs 展示了如何覆盖shell和锁屏类,可以像这样运行
WLR_BACKENDS=wayland phoc -E target/debug/examples/custom-shell-and-lockscreen
文档
API文档在 https://guidog.pages.gitlab.gnome.org/libphosh-rs/git/docs/
依赖项
~18MB
~410K SLoC