Skip to content

Commit c5da9c4

Browse files
Updates history.md to add Editions information.
PiperOrigin-RevId: 921558492
1 parent 6ec7463 commit c5da9c4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

content/history.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@ refer to a message in an abstract sense, "protocol buffer" to refer to a
5555
serialized copy of a message, and "protocol message object" to refer to an
5656
in-memory object representing the parsed message.
5757

58+
## What About Proto3 and Editions? {#proto3}
59+
60+
In 2023, we introduced Protocol Buffers Editions to allow for a more granular
61+
control over features and to move away from the "all or nothing" approach of
62+
`proto2` and `proto3`. With Editions, you can now explicitly specify which
63+
features you want to use in your `.proto` files.
64+
65+
For example, to use the 2023 edition, you would add the following to your
66+
`.proto` file:
67+
68+
```proto
69+
edition = "2023";
70+
```
71+
72+
There will be a transitional period during which `proto2`, `proto3`, and
73+
Editions coexist. For more information on Editions, see the
74+
[Protobuf Editions Overview](/editions/overview).
75+
5876
## Does Google Have Any Patents on Protocol Buffers? {#patents}
5977

6078
Google currently has no issued patents on protocol buffers, and we are happy to

0 commit comments

Comments
 (0)