witforge-build
Build-script (build.rs) helper for compiling witforge-generated
.proto schemas with pure-Rust protox, prost-build, and optional pbjson-build (pbjson feature).
Usage
Add witforge-build under [build-dependencies] (first published on crates.io starting in
0.8.0; enable features = ["pbjson"] if you also need proto3-JSON
serde::Serialize / serde::Deserialize implementations):
[]
= "0.14"
[]
= "0.10.0"
In build.rs:
In src/lib.rs (the same layout works for both standalone contracts and contracts with deps/):