Crates.io | gree |
lib.rs | gree |
version | 0.1.1 |
source | src |
created_at | 2023-06-24 10:59:36.869903 |
updated_at | 2023-06-24 11:15:28.715759 |
description | Controlling Gree Smart air conditioning units via Rust |
homepage | |
repository | https://github.com/vvvy/gree-rs |
max_upload_size | |
id | 898907 |
size | 100,140 |
Controlling Gree Smart air conditioning units via Rust
See examples.
This Dockerfile uses zig
and cargo-zigbuild
for easy cross-compilation.
Build docker image
docker build --tag vvv/cargo-zigbuild:1.70.0 .
Build example (works also in 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
or, to save some time in repetitive builds (useful only if your host OS is Linux or (maybe) WSL; for non-WSL Win host the effect is negative):
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