-
Notifications
You must be signed in to change notification settings - Fork 33
Support service syntax #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess I could just allow parsing of the file but not generate anything. |
👍 I'm looking to try out: https://github.com/etcd-io/etcd/blob/master/etcdserver/etcdserverpb/rpc.proto -- it uses the |
Since that file only contains the service definition. I think it might be best to rather run ocaml-protoc on each of the included file to generate the type. ocaml-protoc is solely focusing on the serialization part not the IPC part. |
could service files produce a functor that is parametrized by, say, a state type, and containing a state machine for query/replies? Then the user can instantiate that with the appropriate transport (such as http2, but not limited to that)? |
I am not sure what it would compile to, but I think it would be nice if the parser at least processed it and showed syntax errors and then exited with a (disableable) error. Currently I have to comment out these sections from the
.proto
files, which is not terrible but it would be nice if I could just use the proto files as-is.The text was updated successfully, but these errors were encountered: