protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
65.44k stars 15.46k forks source link

(ruby) Support encoding/decoding textproto format #13722

Open HoneyryderChuck opened 1 year ago

HoneyryderChuck commented 1 year ago

What language does this apply to?

ruby

Describe the problem you are trying to solve.

Want to use a conformance suite from google described in textproto format, but the protobuf ruby build seems not to be able to understand the format.

Describe the solution you'd like

msg = Message.decode_text(bytes)
Message.encode_text(msg)

Additional context

python protobuf supports it via the text_format module. go supports it via Unmarshal. I don't know about the state of other builds.

github-actions[bot] commented 10 months ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

HoneyryderChuck commented 10 months ago

I'd like to remain active 🙏

haberman commented 8 months ago

The upb library which underlies Ruby Protobuf currently supports serializing to, but not parsing from, TextFormat: https://github.com/protocolbuffers/protobuf/tree/main/upb/text

So adding a text format encoder would be pretty straightforward. But adding a parser would require first adding upb support for that.

github-actions[bot] commented 5 months ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

HoneyryderChuck commented 5 months ago

Active

github-actions[bot] commented 2 months ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

HoneyryderChuck commented 2 months ago

Activate plz