twitchtv / twirp

A simple RPC framework with protobuf service definitions
https://twitchtv.github.io/twirp/docs/intro.html
Apache License 2.0
7.19k stars 326 forks source link

Add version constant for better compile time error messages for versi… #322

Closed marioizquierdo closed 3 years ago

marioizquierdo commented 3 years ago

Fixes #309

Runtime library defines the constant twirp.TwirpPackageMinVersion_8_1_0 that is referenced from generated code after v8.1.0 to improve the error message at compile-time in case that the runtime needs to be updated to the latest version.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.