Skip to content
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

Add support for extensions in CRuby, JRuby, and FFI Ruby #14703

Closed
wants to merge 47 commits into from

Conversation

JasonLunn
Copy link
Contributor

@JasonLunn JasonLunn commented Nov 9, 2023

Follow up to #14594, which added support for custom options, this PR implements extensions support, which should fully resolve #1198.

jsteinberg and others added 30 commits May 16, 2023 09:25
…internal_deep_freeze` for JRuby message classes.
…ternal_deep_freeze` for FFI message classes.
Don't expose `internal_deep_freeze`, even as a private method.
Don't expose `internal_deep_freeze` under JRuby, even as private method.
…xtensions-in-ruby

# Conflicts:
#	ruby/ext/google/protobuf_c/message.c
#	ruby/tests/basic.rb
* Pass arena to glue functions.
* Memoize `options` accessor.
* Remove use of VLA.
* Adding test coverage for `FieldOptions`
* Handle case where fields are not materialized until after `freeze`
@JasonLunn JasonLunn added ruby jruby Issues unique to the JRuby interpreter labels Nov 9, 2023
@JasonLunn JasonLunn requested a review from a team as a code owner November 9, 2023 15:50
@JasonLunn JasonLunn requested review from ericsalo and haberman and removed request for a team and ericsalo November 9, 2023 15:50
* Remove code generation changes for constants for extensions.
* Remove code changes relating to syntax sugar.
ruby/ext/google/protobuf_c/defs.h Outdated Show resolved Hide resolved
@JasonLunn JasonLunn deleted the add-support-for-extensions-in-ruby branch November 14, 2023 23:44
protobuf-team-bot added a commit that referenced this pull request Nov 14, 2023
zhangskz pushed a commit that referenced this pull request Nov 14, 2023
Follow up to #14594, which added support for custom options, this PR implements extensions support, which should fully resolve #1198.

Closes #14703

COPYBARA_INTEGRATE_REVIEW=#14703 from protocolbuffers:add-support-for-extensions-in-ruby 601aca4
PiperOrigin-RevId: 582460674
zhangskz added a commit that referenced this pull request Nov 15, 2023
…4756)

Follow up to #14594, which added support for custom options, this PR implements extensions support, which should fully resolve #1198.

Closes #14703

COPYBARA_INTEGRATE_REVIEW=#14703 from protocolbuffers:add-support-for-extensions-in-ruby 601aca4
PiperOrigin-RevId: 582460674

Co-authored-by: Jason Lunn <jason.lunn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jruby Issues unique to the JRuby interpreter ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No way to use custom options in Ruby
3 participants