mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-26 21:24:22 +00:00
d14ebce888
This change required updating editions_defaults.binpb with --edition_defaults_maximum=2024 so that we can use edition 2024 in our testdata/enumprefix.proto test file. For end users, this feature will only be available once: 1. protoc declares support for edition 2024 (expected early 2025). 2. protoc-gen-go declares support for edition 2024. related to golang/protobuf#513 Change-Id: Ib8daeecae39ef32eff942279707d256c312f2a53 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/618979 Reviewed-by: Lasse Folger <lassefolger@google.com> Reviewed-by: Mike Kruskal <mkruskal@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com>
19 lines
661 B
Go
19 lines
661 B
Go
// Copyright 2024 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package editionssupport defines constants for editions that are supported.
|
|
package editionssupport
|
|
|
|
import "google.golang.org/protobuf/types/descriptorpb"
|
|
|
|
const (
|
|
Minimum = descriptorpb.Edition_EDITION_PROTO2
|
|
Maximum = descriptorpb.Edition_EDITION_2023
|
|
|
|
// MaximumKnown is the maximum edition that is known to Go Protobuf, but not
|
|
// declared as supported. In other words: end users cannot use it, but
|
|
// testprotos inside Go Protobuf can.
|
|
MaximumKnown = descriptorpb.Edition_EDITION_2024
|
|
)
|