Protobuf Team Bot
7e47fc3e39
Remove the _mut() accessors from primitive fields (both explicit presence where they were FieldEntry and implicit presence where they were PrimitiveMut).
...
PiperOrigin-RevId: 615792730
9 months ago
Protobuf Team Bot
fb08bca4e4
Auto-generate files after cl/615779322
9 months ago
Protobuf Team Bot
7ec56d4243
Remove the oneof_mut accessor and expose the oneof_case accessor on gencode api.
...
PiperOrigin-RevId: 615782249
9 months ago
Protobuf Team Bot
2f0fe0641c
Add Arena tracing handlers.
...
PiperOrigin-RevId: 615779322
9 months ago
Protobuf Team Bot
5c8cbdfefd
Fix warnings due to unused 'map' param on map_free on upb kernel (where the upb_free function is a no-op)
...
PiperOrigin-RevId: 615535675
9 months ago
Protobuf Team Bot
be4476f100
Fix warnings about unnecessary 'use' due to Box, Send and Sync being defined in the language prelude.
...
PiperOrigin-RevId: 615533149
9 months ago
Chris Kennelly
c6727f4eba
Automated rollback of commit d0c631ce7f
.
...
PiperOrigin-RevId: 615472723
9 months ago
Chris Kennelly
d0c631ce7f
Automated rollback of commit ac6c541e12
.
...
PiperOrigin-RevId: 615471065
9 months ago
Ming-Chuan
e54174728f
Add back android config_setting that looks for //external:android/crosstool ( #16127 )
...
In https://github.com/protocolbuffers/protobuf/pull/15298 `"crosstool_top": "//external:android/crosstool"` was replaced with `"crosstool_top": "@platforms//os:android"`. This breaks users who have not migrated to https://bazel.build/concepts/platforms yet.
Closes #16127
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/16127 from sifmelcara:add-back-legacy-crosstool-top c643235a3d
PiperOrigin-RevId: 615449874
9 months ago
Protobuf Team Bot
0a930a1df7
Auto-generate files after cl/615169203
9 months ago
Eric Salo
a03ece58f7
upb: delete upb_Map_Delete2()
...
PiperOrigin-RevId: 615169203
9 months ago
Protobuf Team Bot
634cc14ed4
Auto-generate files after cl/615136389
9 months ago
Mike Kruskal
b6032d72e3
Add basic upb cmake support.
...
libupb will always be statically linked, and currently doesn't ever install itself.
PiperOrigin-RevId: 615136389
9 months ago
Protobuf Team Bot
a5e5e02bdf
Fix memory leak in the arena when interacting with a type that derives from
...
MessageLite and is marked as arena constructible but not as destructor
skippable. The object was not being registered for destruction.
This currently only affects ImplicitWeakMessage.
PiperOrigin-RevId: 615099201
9 months ago
Mike Kruskal
ea3fe6389e
Internal changes
...
PiperOrigin-RevId: 615051925
9 months ago
Alex Eagle
d2b71b347d
feat: automate publishing releases to Bazel Central Registry ( #16014 )
...
Note, recent releases on the BCR have a patch set applied, and it seems these patches are developed independently to "fix" each protobuf release, rather than make changes to protobuf repo.
The effect of this PR will be to create a *broken* publish to BCR for each protobuf release. At least this red PR on BCR will be our indication that the patches need to be manually replayed there.
In parallel, starting with #16013 I'll apply as many of those patches to the protobuf repo as possible. That will reduce the manual effort for each release.
Replaces https://github.com/protocolbuffers/protobuf/pull/14565 which originated from my fork so the tests wouldn't run.
Closes #16014
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/16014 from protocolbuffers:bcr e17d9c8127
PiperOrigin-RevId: 615026796
9 months ago
Jakob Buchgraber
ad5e55ab92
#protobuf #rust Mark {Map, Repeated}::new() as public
...
* Matches the C++ Protobuf API.
* Improves ergonomics by allowing users to provide Into, FromIterator, et. al. implementations.
* Allows owned types to be returned from functions.
PiperOrigin-RevId: 615008080
9 months ago
Protobuf Team Bot
9ff062cd34
Make types for 'inner' (runtime-specific) owned Repeated and Maps
...
PiperOrigin-RevId: 614995436
9 months ago
Mike Kruskal
baa83b6b43
Enable Editions in preparation for 27.0 release.
...
This marks the official launch of editions, which no longer requires an --experimental_editions flag to use with supported generators. The flag can still be used for generators that don't yet explicitly support editions.
PiperOrigin-RevId: 614729247
9 months ago
Mike Kruskal
7a0e10e021
Release edition defaults CLI arguments.
...
These are no longer experimental, and are the preferred way to generate edition defaults IR for feature resolution.
PiperOrigin-RevId: 614715815
9 months ago
Protobuf Team Bot
db9cc39bb2
Auto-generate files after cl/614707625
9 months ago
Eric Salo
e1a19ba8bb
upb: add 'options' arg to upb_Message_IsEqual()
...
PiperOrigin-RevId: 614707625
9 months ago
Protobuf Team Bot
bb1c0abcbf
Make the oneof view accessors use consuming-self and the corresponding longer lifetime, avoiding unnecessary shortening of lifetimes in some cases.
...
This follows the precedent established on other accessors on Msg Views.
PiperOrigin-RevId: 614658415
9 months ago
Derek Mauro
686361e79e
Automated Code Change
...
PiperOrigin-RevId: 614658262
9 months ago
Derek Mauro
b5dcc38679
Automated Code Change
...
PiperOrigin-RevId: 614655228
9 months ago
Mike Kruskal
04397d4c77
Exclude checked-in descriptor gencode from source wheels.
...
PiperOrigin-RevId: 614038432
9 months ago
Jie Luo
eee53125c4
internal change
...
PiperOrigin-RevId: 613982814
9 months ago
Protobuf Team Bot
45f9158b8a
Auto-generate files after cl/613970553
9 months ago
Mike Kruskal
8c0485cb68
Include minitable codegen in checked-in cmake files
...
PiperOrigin-RevId: 613970553
9 months ago
Protobuf Team Bot
e41ffb01a2
Auto-generate files after cl/613765356
9 months ago
Mike Kruskal
54a8588148
Fix staleness regen script that now silently fails
...
PiperOrigin-RevId: 613765356
9 months ago
Mike Kruskal
58312a6f2e
Check in upb bootstrap gencode for future cmake usage
...
PiperOrigin-RevId: 613757614
9 months ago
Protobuf Team Bot
cdb0345d16
Auto-generate files after cl/613747349
9 months ago
Éamonn McManus
3c0f3ca6be
Document `upb_Message_SetMessage`.
...
PiperOrigin-RevId: 613747349
9 months ago
Protobuf Team Bot
9db04d2e01
Fix dynamically generated MapEntry parser to have the same behavior as the
...
codegen parser for maps.
Change TcParse table generation to get the fallback function from the generator instead of each one having the logic.
PiperOrigin-RevId: 613722790
9 months ago
Protobuf Team Bot
3ee0120cee
Auto-generate files after cl/613716602
9 months ago
Protobuf Team Bot
99315b19d2
Fix upb_MiniTable_SetFullName signature.
...
PiperOrigin-RevId: 613716602
9 months ago
Protobuf Team Bot
ccfab6a8d5
Auto-generate files after cl/613664457
9 months ago
Protobuf Team Bot
bcb4026c0c
Auto-generate files after cl/613659141
9 months ago
Protobuf Team Bot
cbfb6991f3
Add api to trace message allocations.
...
Initialize minitable tracing field for MtDecoder
Add api for non C language runtimes to initialize dynamic mini table name.
PiperOrigin-RevId: 613664457
9 months ago
Protobuf Team Bot
b67a0d92dc
Add "NO CHECKED-IN PROTOBUF GENCODE" to Protobuf C++ gencode.
...
PiperOrigin-RevId: 613659141
9 months ago
Protobuf Team Bot
94ab406bcf
Auto-generate files after cl/613387033
9 months ago
Protobuf Team Bot
434b530c06
Move EagerParseLazyField* APIs to proto2 namespace
...
PiperOrigin-RevId: 613387033
9 months ago
Mike Kruskal
dc484c131e
Fix has_presence to account for proto3 extensions in Java.
...
PiperOrigin-RevId: 613373080
9 months ago
Protobuf Team Bot
0fd69cf163
Auto-generate files after cl/613368436
9 months ago
Protobuf Team Bot
8a15c73d2c
Improve pinning assembly when using a clang that supports it.
...
The new technique adds the relocation without adding an instruction that has to
be executed in the code path.
PiperOrigin-RevId: 613368436
9 months ago
Protobuf Team Bot
9271acec79
Auto-generate files after cl/613361074
9 months ago
Mike Kruskal
d5543304d5
Fix has_presence to account for proto3 extensions in Python.
...
PiperOrigin-RevId: 613361074
9 months ago
Protobuf Team Bot
3b6e659d95
Minor cleanup: IWYU, clang-tidy, etc.
...
PiperOrigin-RevId: 613349591
9 months ago
Mike Kruskal
16528d89c5
Fix has_presence to account for proto3 extensions in C++.
...
PiperOrigin-RevId: 613345477
9 months ago