qitab / cl-protobufs

Common Lisp protocol buffer implementation.
MIT License
84 stars 18 forks source link

Use cl-protobufs 'passively' with already generated *.lisp files from *.proto? #407

Closed minutello closed 1 year ago

minutello commented 1 year ago

This is more of a feature request than an issue, but it's certainly important:

What about using cl-protobufs on e.g. a mobile device, where we don't have (and don't need) the 'protoc' executable installed, because the respective *.lisp files have already been generated.

In other words: what about just a passive use of a minimal version of cl-protobufs, without full installation?

Is this currently possible? (Looking at the JS protobufs implementation, they certainly seem to provide this.)

minutello commented 1 year ago

Replying to myself: I hacked something together which works, I basically just included the generated *.lisp files from the included *.proto files, made some small adaption, and it works fine!

Slids commented 1 year ago

All protoc does is generate a file that lisp reads, so yip, thats the best way! I'm closing this as I don't see what more you want.

minutello commented 1 year ago

ok thanks!