mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
Three of these runtimes are based on upb, and the fourth is based on the Java runtime. Both of these already have editions support, so this was mostly just a matter of: - Advertising support to allow editions codegen - Stripping features from the runtime options - Hooking up conformance tests - Adding some lightweight editions tests There are also a few minor orthogonal fixes included here: - Ruby's upb hack for treating all enums as open enums needed tweaking - The `enable_editions` flag is no longer needed in our internal proto rules PiperOrigin-RevId: 616256211
21 lines
660 B
Protocol Buffer
21 lines
660 B
Protocol Buffer
edition = "2023";
|
|
|
|
package basic_test;
|
|
|
|
import "test_import_proto2.proto";
|
|
|
|
option features.enum_type = CLOSED; // Ignored by ruby.
|
|
option features.field_presence = IMPLICIT;
|
|
|
|
message TestFeaturesMessage {
|
|
int32 implicit = 1;
|
|
int32 explicit = 2 [features.field_presence = EXPLICIT];
|
|
int32 legacy_required = 3 [features.field_presence = LEGACY_REQUIRED];
|
|
|
|
repeated int32 packed = 50;
|
|
repeated int32 expanded = 51 [features.repeated_field_encoding = EXPANDED];
|
|
repeated foo_bar.proto2.TestImportedMessage unpackable = 52;
|
|
|
|
TestFeaturesMessage delimited = 100 [features.message_encoding = DELIMITED];
|
|
TestFeaturesMessage length_prefixed = 101;
|
|
}
|