nanopb/protoc version compatibility?

31 views
Skip to first unread message

Jo

unread,
Jul 24, 2025, 1:34:07 AMJul 24
to nanopb
Hi there,
I'm building protoc from source (vs. using the protoc binary included in the nanopb binary package). I was wondering if there were guidelines about version compatibility between nanopb and protoc? Everything is working fine for me right now (with nanopb 0.4.8 and libprotoc 24.3) but I'm curious how to determine the proper version of libprotoc for when I upgrade to nanopb 0.4.9.
Thanks very much for any advice you can offer!
Jo

Petteri Aimonen

unread,
Jul 24, 2025, 1:43:51 AMJul 24
to nanopb
Hi,

Ideally any version would work, but sometimes there are API changes on the python-protobuf side which are then fixed only in later nanopb versions.
Extra complication is that sometimes grpcio-tools and python-protobuf are not themselves compatible, though that is rare.

There is no compatibility list (it seems like a lot of effort to make one, though I guess it could be automated).
There is extra/requirements_lock.txt which lists the versions the Bazel tests were run on, so that's at least one version that works.

--
Petteri
Reply all
Reply to author
Forward
0 new messages