2 个版本
0.1.1 | 2023年6月24日 |
---|---|
0.1.0 | 2023年6月24日 |
#689 in 科学
53KB
997 代码行
gree-rs
使用 Rust 控制 Gree 智能空调
查看示例。
使用 Docker 构建
此 Dockerfile 使用 zig
和 cargo-zigbuild
以便于交叉编译。
构建 Docker 镜像
docker build --tag vvv/cargo-zigbuild:1.70.0 .
构建示例(也适用于 powershell
)
docker run --rm -v "$(pwd):/project" vvv/cargo-zigbuild:1.70.0 --target arm-unknown-linux-gnueabihf.2.24 --example async_tool --features tokio --release
或者,为了在重复构建中节省时间(仅在宿主操作系统为 Linux 或(可能是)WSL 时有用;对于非 WSL 的 Windows 宿主机效果相反)
docker run --rm -v "$(pwd):/project" -v "$(pwd)/../tmp/cache:/root/.cache" -v "$(pwd)/../tmp/registry:/usr/local/cargo/registry" vvv/cargo-zigbuild:1.70.0 --target arm-unknown-linux-gnueabihf.2.24 --example async_tool --features tokio --release
链接
- https://github.com/tomikaa87/gree-remote - 协议描述,多种语言的 API,Python 的 CLI
依赖关系
~4–13MB
~144K SLoC