You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: editions/features/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@
58
58
<ahref=/editions/overview#export-local><code>export</code> / <code>local</code> Keywords</a>.</p><p><strong>Values available:</strong></p><ul><li><code>EXPORT_ALL</code>: This is the default prior to Edition 2024. All messages and
59
59
enums are exported by default.</li><li><code>EXPORT_TOP_LEVEL</code>: All top-level symbols default to export; nested default
60
60
to local.</li><li><code>LOCAL_ALL</code>: All symbols default to local.</li><li><code>STRICT</code>: All symbols local by default. Nested types cannot be exported,
61
-
except for a special-case caveat for <code>message { enum {} reserved 0 to max; }</code>. This will become the default in a future edition.</li></ul><p><strong>Applicable to the following scope:</strong> file</p><p><strong>Added in:</strong> Edition 2024</p><p><strong>Default behavior per syntax/edition:</strong></p><table><thead><tr><th>Syntax/edition</th><th>Default</th></tr></thead><tbody><tr><td>2024</td><td><code>EXPORT_TOP_LEVEL</code></td></tr><tr><td>2023</td><td><code>EXPORT_ALL</code></td></tr><tr><td>proto3</td><td><code>EXPORT_ALL</code></td></tr><tr><td>proto2</td><td><code>EXPORT_ALL</code></td></tr></tbody></table><p><strong>Note:</strong> Feature settings on different schema elements
61
+
except for a special-case caveat for <code>message { enum {} reserved 1 to max; }</code>. This will become the default in a future edition.</li></ul><p><strong>Applicable to the following scope:</strong> file</p><p><strong>Added in:</strong> Edition 2024</p><p><strong>Default behavior per syntax/edition:</strong></p><table><thead><tr><th>Syntax/edition</th><th>Default</th></tr></thead><tbody><tr><td>2024</td><td><code>EXPORT_TOP_LEVEL</code></td></tr><tr><td>2023</td><td><code>EXPORT_ALL</code></td></tr><tr><td>proto3</td><td><code>EXPORT_ALL</code></td></tr><tr><td>proto2</td><td><code>EXPORT_ALL</code></td></tr></tbody></table><p><strong>Note:</strong> Feature settings on different schema elements
62
62
<ahref=#cascading>have different scopes</a>.</p><p>The following sample shows how you can apply the feature to elements in your
63
63
proto schema definition files:</p><divclass=highlight><pretabindex=0style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><codeclass=language-protodata-lang=proto><spanstyle=display:flex><span><spanstyle=color:#8f5902;font-style:italic>// foo.proto
0 commit comments