esphome 0.1.0

ESPHome API client for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use protobuf_codegen_pure::Customize;

fn main() {
	let out_dir = std::env::var("OUT_DIR").unwrap();

	protobuf_codegen_pure::Codegen::new()
		.customize(Customize {
			gen_mod_rs: Some(true),
			..Default::default()
		})
		.out_dir(out_dir)
		.input("src/api.proto")
		.include("src/")
		.run()
		.expect("protoc");
}