2个版本

新版本 0.0.2 2024年8月25日
0.0.1 2024年7月2日

#98 in #gnome

Download history · Rust 包仓库 144/week @ 2024-06-30 · Rust 包仓库 2/week @ 2024-07-07 · Rust 包仓库

96 每月下载量

MITLGPL-2.1-only

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.girPhosh-0.gir所做的更改。

示例

有两个示例展示了libphosh-rs的使用方法

  • hello-world.rs 包含启动shell所需的最小代码,可以像这样运行
   WLR_BACKENDS=wayland phoc -E target/debug/examples/hello-world
   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