gree

Crates.iogree
lib.rsgree
version0.1.1
sourcesrc
created_at2023-06-24 10:59:36.869903
updated_at2023-06-24 11:15:28.715759
descriptionControlling Gree Smart air conditioning units via Rust
homepage
repositoryhttps://github.com/vvvy/gree-rs
max_upload_size
id898907
size100,140
Valery Vybornov (vvvy)

documentation

README

gree-rs

Controlling Gree Smart air conditioning units via Rust

See examples.

Building with docker

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

Links

Commit count: 14

cargo fmt