Protobuf Team Bot
defe92a03c
Clang's unsigned integer overflow sanitizer is flagging BucketNumber as having an overflow. This seems to be intentional, and we should disable the sanitizer for this function.
...
PiperOrigin-RevId: 520968947
2 years ago
Mike Kruskal
2a798b07ff
Internal change.
...
PiperOrigin-RevId: 520962747
2 years ago
Jie Luo
47861d2892
Add wire format cord support for singular bytes
...
PiperOrigin-RevId: 520690714
2 years ago
Martijn Vels
0032f200e9
Fix IsEagerSerializeSafe() and kParseError behavior
...
PiperOrigin-RevId: 520664827
2 years ago
Augie Fackler
648060bbcb
Internal change.
...
PiperOrigin-RevId: 520627020
2 years ago
Jakob Buchgraber
515175db66
Build & test Rust compiler on GHA
...
PiperOrigin-RevId: 520578368
2 years ago
Jakob Buchgraber
52d3dc688c
Refactor Rust UPB codegen to prepare for field accessors
...
The idea is that after this refactoring we implement the codegen for field accessors by adding another template variable, like
p.Emit(
...
$ImplMessageFunctions$;
$ImplFieldAccessors$;
...
)
PiperOrigin-RevId: 520571021
2 years ago
Marcel Hlopko
ebbb2d656f
Visibility restrict targets generated by rust_proto_library macro
...
PiperOrigin-RevId: 520561115
2 years ago
Mike Kruskal
83507c7f4e
Implement a retain_options flag in protoc.
...
This will allow users to force the retention of RETENTION_SOURCE options, which get stripped out by default.
PiperOrigin-RevId: 520555632
2 years ago
Protobuf Team Bot
4ee65df9f2
Auto-generate files after cl/520526112
2 years ago
Mike Kruskal
676018e352
Expand retention stripping API, and improve test coverage
...
PiperOrigin-RevId: 520526112
2 years ago
Sandy Zhang
8c8b2be3a8
Breaking change: Lock down visibility for FileDescriptor.getSyntax().
...
Syntax will become meaningless once we migrate to editions. In the meantime, we've implemented APIs to expose the differences between proto2 and proto3 in terms of the features we plan to release in edition 2023.
PiperOrigin-RevId: 520433607
2 years ago
Protobuf Team Bot
5dc171f71e
Extension declaration: Enforce that if the extension range has a declaration then all extensions in that range must be declared. This should prevent non-declared extensions from being added.
...
PiperOrigin-RevId: 520415909
2 years ago
Mike Kruskal
db126ca653
Fix exhaustive switch issue in Rust generator
...
PiperOrigin-RevId: 520398035
2 years ago
Mike Kruskal
2eda0cc44c
Add optimizations to extension declaration validation.
...
PiperOrigin-RevId: 520386119
2 years ago
Mike Kruskal
f9fa1f4873
Automated rollback of commit b72eb3f233
.
...
PiperOrigin-RevId: 520363442
2 years ago
Marcel Hlopko
d9a8622fac
Enable bzl visibility for Protobuf Rust rules
...
PiperOrigin-RevId: 520319698
2 years ago
Jakob Buchgraber
dbf97258bd
Enable support for rust_upb_proto_library and rust_cc_proto_library within the same build
...
PiperOrigin-RevId: 520314976
2 years ago
Mike Kruskal
b72eb3f233
Add optimizations to extension declaration validation.
...
PiperOrigin-RevId: 520159132
2 years ago
Mike Kruskal
5bf843b3d5
Internal changes
...
PiperOrigin-RevId: 520120295
2 years ago
deannagarcia
f1c7820c9b
Suppress -Wunused-parameter warning for GCC and clang. ( #12355 )
...
* Suppress -Wunused-parameter warning for GCC and clang.
Closes https://github.com/protocolbuffers/protobuf/issues/12313
PiperOrigin-RevId: 520066451
* Remove unintended cherrypicked line
2 years ago
Mike Kruskal
f128ced675
Internal Code Change
...
PiperOrigin-RevId: 520076528
2 years ago
Deanna Garcia
8aff59e1c4
Suppress -Wunused-parameter warning for GCC and clang.
...
Closes https://github.com/protocolbuffers/protobuf/issues/12313
PiperOrigin-RevId: 520066451
2 years ago
Protobuf Team Bot
6ae84761bf
Auto-generate files after cl/520049946
2 years ago
Mike Kruskal
3f4af6661a
Internal Code Change
...
PiperOrigin-RevId: 520049946
2 years ago
Jakob Buchgraber
4745f526d4
Small style guide, naming and formatting fixes
...
PiperOrigin-RevId: 519993508
2 years ago
Jakob Buchgraber
8c92452c99
Split UPB and C++ kernel codegen into their own functions
...
PiperOrigin-RevId: 519977094
2 years ago
Protobuf Team Bot
e2f3d64742
Internal change.
...
PiperOrigin-RevId: 519859619
2 years ago
Mike Kruskal
dff36c7d02
Update source code info when stripping source-retention options
...
When we invoke protoc with `--include_source_info --descriptor_set_out`, we
currently strip out source-retention options but without doing the
corresponding stripping of the source code info. This CL fixes that problem by
making sure to strip the same entities from source code info that we stripped
from the main part of the descriptors.
PiperOrigin-RevId: 519831383
2 years ago
Mike Kruskal
0549e52188
Internal Code Change
...
PiperOrigin-RevId: 519775744
2 years ago
cpovirk
d60af33f09
Internal Change
...
PiperOrigin-RevId: 519771456
2 years ago
Protobuf Team Bot
5b59a02b91
Auto-generate files after cl/519752053
2 years ago
Mike Kruskal
145900f06c
Open-source extension declaration definition.
...
PiperOrigin-RevId: 519752053
2 years ago
Protobuf Team Bot
3a871acca0
Fix internal build breakage
...
PiperOrigin-RevId: 519277200
2 years ago
Adam Cozzette
42c2b7ec60
Internal change
...
PiperOrigin-RevId: 519260063
2 years ago
Jie Luo
6ecb5d097e
Added Reflection::GetCord() method in C++
...
PiperOrigin-RevId: 519246549
2 years ago
Jonas Kvinge
477e35f4c2
Add missing cstdint include to port.h ( #12331 )
...
Fixes compile errors with GCC 13.
port.h:186:67: error: ‘uint32_t’ was not declared in this scope
port.h:187:67: error: ‘uint64_t’ was not declared in this scope
Closes #12331
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12331 from jonaski:cstdint 9bef449478
PiperOrigin-RevId: 519208789
2 years ago
Mike Kruskal
3e188b7c04
Automated rollback of commit 1d7bda4a78
.
...
PiperOrigin-RevId: 519177322
2 years ago
Yamamoto, Hirotaka
620eebecde
Add Cybozu to options.md ( #12324 )
...
Hello.
We want to make our protobuf repository public which contains a custom extension.
Our code is already available at https://github.com/cybozu/protobuf .
Please let us use extension number 1179.
Regards,
Closes #12324
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/12324 from ymmt2005:patch-1 b0a5171211
PiperOrigin-RevId: 519022489
2 years ago
Protobuf Team Bot
53f3cf8e15
Internal changes
...
PiperOrigin-RevId: 519008855
2 years ago
Martijn Vels
dbbe317b4f
Small optimization: move TcParser::Error() out of line
...
PiperOrigin-RevId: 518943474
2 years ago
Jakob Buchgraber
ef53613b42
Add GHA workflow for Rust
...
PiperOrigin-RevId: 518933228
2 years ago
Protobuf Team Bot
4562c1c235
Internal change.
...
PiperOrigin-RevId: 518884627
2 years ago
Protobuf Team Bot
34517b6456
Internal changes to extensions.
...
PiperOrigin-RevId: 518691032
2 years ago
Eric Salo
dfb71558a2
sync to current upb and enable new unit test on upb
...
PiperOrigin-RevId: 518643876
2 years ago
Jakob Buchgraber
7802b93442
Fix build errors in Protobuf Rust
...
PiperOrigin-RevId: 518619271
2 years ago
cpovirk
9a76b96cc4
Internal change.
...
PiperOrigin-RevId: 518582206
2 years ago
cpovirk
2b663464ea
Internal change.
...
PiperOrigin-RevId: 518574031
2 years ago
Protobuf Team Bot
a7087a0376
Automated rollback of commit f7e6c46824
.
...
PiperOrigin-RevId: 518572689
2 years ago
Eric Salo
579f4ab70d
fix Python bug with required fields
...
https://github.com/protocolbuffers/upb/issues/1220
There were two bugs here: Python was incorrectly mandating that a required
field be set during assignment, and it was also incorrectly assuming a non-NULL
return from an internal function call.
PiperOrigin-RevId: 518561818
2 years ago