Hong Shin
7620bbf3c6
Temporary removal of hpb BUILD files for OSS while we refactor.
...
At some point we will re-introduce these with the corresponding CI tests to ensure they stay green.
PiperOrigin-RevId: 675691367
2 months ago
Protobuf Team Bot
6b22fd125c
Add on-demand construction of enum validation data in EnumDescriptor.
...
This can be used by dynamic messages to validate enums instead of going through
reflection.
This removes one of the few cases where dynamic messages have to fall back to
reflection during table-driven parsing.
PiperOrigin-RevId: 675630939
2 months ago
Protobuf Team Bot
de51f2cc06
Prepare for `google::protobuf::MapKey` to no longer own string keys
...
PiperOrigin-RevId: 675601391
2 months ago
Hong Shin
cbdc330f80
Rename upb_cc_proto_library_copts to hpb_proto_library_copts
...
PiperOrigin-RevId: 675592784
2 months ago
Zoey Greer
ac8dc6094b
Use `//:well_known_type_protos` instead of `//:well_known_protos` as per deprecation warning ( #18237 )
...
Closes #18237
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18237 from tempoz:tempoz-fix-deprecated-use-of-well-known-protos 0aecd01032
PiperOrigin-RevId: 675574418
2 months ago
Protobuf Team Bot
c860fa3714
Make WireFormat::(ByteSize|_InternalSerialize) LazyField compatible (take #3 but disabled)
...
PiperOrigin-RevId: 675319986
2 months ago
Protobuf Team Bot
a80bc8a0a8
Start breaking up OSS unit test proto_library monolith
...
PiperOrigin-RevId: 675283534
2 months ago
Protobuf Team Bot
5a556542f3
Automated rollback of commit 91e3162240
.
...
PiperOrigin-RevId: 675279727
2 months ago
Xufei Tan
774ecb2c48
Internal change.
...
PiperOrigin-RevId: 675274888
2 months ago
Protobuf Team Bot
c666aef7e6
Replace PROTOBUF_ENABLE_FUZZ_MESSAGE_SPACE_USED_LONG macro with constexpr function for easier maintenance.
...
No semantic change expected.
PiperOrigin-RevId: 675264102
2 months ago
Adam Cozzette
1a83839831
Fix string copy in MessageDifferencer::Compare()
...
This CL fixes an unnecessary string copy. `Message::GetTypeName()` always
returns a copy, but we can avoid this by relying on `Descriptor::full_name()`
instead.
PiperOrigin-RevId: 675237607
2 months ago
Protobuf Team Bot
51adb09adc
Remove JavaProtoAspectInfo duplication
...
Everything should work without this change, because all references are done to a single definition. But the accidental duplication needs to be removed eventually.
PiperOrigin-RevId: 675211197
2 months ago
Adam Cozzette
dca7bf06d8
Java: make sure message.getExtension() returns immutable lists
...
PiperOrigin-RevId: 675169719
2 months ago
Protobuf Team Bot
372ddb308b
Support --incompatible_enable_proto_toolchain_resolution
...
Move toolchain types into protobuf repo
Add default registrations for them (building from sources)
PiperOrigin-RevId: 674801639
2 months ago
Zoey Greer
48ff2328be
Update rules_pkg to get fix for timestamp warning ( #18263 )
...
Without this, we get many warnings about deprecated timestamp methods in python.
Closes #18263
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18263 from tempoz:tempoz-update-rules-pkg aabe3d8db6
PiperOrigin-RevId: 674661085
2 months ago
Zoey Greer
a7d47b3ebf
Fix warnings stating that `always_inline` functions must also be declared `inline` ( #18243 )
...
Closes #18243
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18243 from tempoz:tempoz-add-inline 51f20fa941
PiperOrigin-RevId: 674603701
2 months ago
Protobuf Team Bot
426ca8a34a
Move ProtoInfo and ProtoLangToolchainInfo from Bazel
...
The change is no-op for Bazel < 8, it always falls back to native providers.
When we cherry-pick --incompatible_autoload_externally to older Bazels, ProtoInfo
can be replaced with Starlark implementation, providing that users set the flag so that there is no second implementation exposed from Bazel.
PiperOrigin-RevId: 674561141
2 months ago
Mike Kruskal
c87ba1e587
Add daily continuous runs of all our supported release branches
...
PiperOrigin-RevId: 674469632
2 months ago
Protobuf Team Bot
7861f30392
Generate v2 table definition.
...
PiperOrigin-RevId: 674463427
2 months ago
Protobuf Team Bot
af1ba906de
Make C++ proto library work over targets that aren't proto_library
...
PiperOrigin-RevId: 674353486
2 months ago
Mike Kruskal
23eb616f2a
Automated rollback of commit 46eaf53920
.
...
PiperOrigin-RevId: 674338711
2 months ago
Protobuf Team Bot
0d027c6c46
Misc. cleanup: IWYU, clang-tidy, etc.
...
PiperOrigin-RevId: 674337945
2 months ago
Protobuf Team Bot
d77bdacc31
Move java_{lite_}proto_library from Bazel repository
...
Tests will be submitted in separate PRs.
PiperOrigin-RevId: 674321127
2 months ago
Protobuf Team Bot
50eafe9e11
Enable workspace in .bazelrc
...
Ideally, all external deps should be moved to MODULE.bazel since from Bazel 8 WORKSPACE will be disabled.
Fixes https://github.com/protocolbuffers/protobuf/issues/18043
PiperOrigin-RevId: 674300277
2 months ago
Protobuf Team Bot
4834eb75cb
Move some :unittest_(cpp|upb)_rust_proto target to be colocated with the .proto file that defines them
...
This CL doesn't unbreak the bazel tests, but is yak shaving in prep for changes that will. This makes it more straightforward how the tests are broken by having bazel test rules name rust proto library targets that don't exist in bazel repo, instead of naming targets that do exist but are bogus.
Also correct unittest_edition target to match the order of words in the .proto file name (edition_unittest)
PiperOrigin-RevId: 674295376
2 months ago
Protobuf Team Bot
ea0ade331f
Change `google::protobuf::MapKey::GetStringValue` to return `absl::string_view`
...
PiperOrigin-RevId: 674294662
2 months ago
Protobuf Team Bot
9b666c3169
Auto-generate files after cl/674287182
2 months ago
Mike Kruskal
3f8544e706
Internal changes
...
PiperOrigin-RevId: 674287182
2 months ago
Protobuf Team Bot
8130f39227
Stop duplicating the supported PHP version (link to the support page instead).
...
PiperOrigin-RevId: 674070935
2 months ago
Protobuf Team Bot
91e3162240
Streamline creation of new elements in `RepeatedPtrField`
...
The logic to create new elements in `RepeatedPtrField` was spread across an assorted collection of specializations of `GenericTypeHandler`, individual `GenericTypeHandler` static functions, and external member and non-member functions, all living in multiple sources. Now all that logic is concentrated in three symmetric `GenericTypeHandler` specializations.
PiperOrigin-RevId: 674064544
2 months ago
Protobuf Team Bot
52544482bf
Move cc_proto_library from Bazel repository
...
Bazel 6 falls back to native rules, because of ProtoInfo differences.
Bazel 7 is slightly degraded: Kythe flags don't work, DebugContext is left out from CcInfo and temporary files generated by the C++ compiler (but it's only useful for debugging).
Tests will be submitted in separate PRs.
PiperOrigin-RevId: 674030212
2 months ago
Mike Kruskal
782e8ad382
Disable tracking during feature resolution.
...
This can cause deadlocks if the tracker uses reflection that trigger a build of feature extensions.
PiperOrigin-RevId: 674006558
2 months ago
Hong Shin
f6fd9c8276
Remove unused variadic arg in hpb msg gen
...
PiperOrigin-RevId: 674005479
2 months ago
Protobuf Team Bot
07f22241e2
Auto-generate files after cl/673960087
2 months ago
Protobuf Team Bot
dd07031683
Internal Change
...
PiperOrigin-RevId: 673961144
2 months ago
Protobuf Team Bot
bf01e49273
Moving Kotlin DSL file generator to its own directory
...
PiperOrigin-RevId: 673960087
2 months ago
Hong Shin
9d835e65c6
Migrate UpbStrToStringView from hpb to hpb::interop::upb::FromUpbStringView
...
PiperOrigin-RevId: 673959164
2 months ago
Derek Benson
c3e7e987fe
Add a cargo test step to the rust gha
...
PiperOrigin-RevId: 673955655
2 months ago
Hong Shin
4c13f48847
Automated rollback of commit 9a9e5cf7ff
.
...
PiperOrigin-RevId: 673940081
2 months ago
Adam Cozzette
1142838bbc
Rust: get all types onto a single blanket ProxiedInMapValue implementation for upb
...
I realized that as long as we implement `UpbTypeConversions` for enums, we can
easily get the blanket implementation for messages to work for enums as well.
Luckily the blanket implementation also happens to work for non-generated
types, so this gets us down to just one ProxiedInMapValue implementation for
upb.
PiperOrigin-RevId: 673927343
2 months ago
Hong Shin
ada599128c
hpb: Move add_const_if_T_is_const to template_help.h and delete traits.h
...
PiperOrigin-RevId: 673906280
2 months ago
Derek Benson
e9e499f884
make cargo_test.sh executable
...
PiperOrigin-RevId: 673888147
2 months ago
Protobuf Team Bot
8ed7da87a6
Auto-generate files after cl/673871913
2 months ago
Protobuf Team Bot
b2597122dc
Replace PROTOBUF_FORCE_COPY_DEFAULT_STRING macro with constexpr function for easier
...
maintenance.
No semantic change expected.
PiperOrigin-RevId: 673871913
3 months ago
Hong Shin
f77e770486
Empty out protos.h!
...
PiperOrigin-RevId: 673862431
3 months ago
Derek Benson
6174e13ee2
Add new blaze target for running the protobuf and upb crates tests using Cargo
...
PiperOrigin-RevId: 673854261
3 months ago
Protobuf Team Bot
92aca2d442
Exclude rust/test/benchmarks from GitHub
...
These benchmarks only currently work in the google3 environment.
PiperOrigin-RevId: 673853547
3 months ago
Derek Benson
4c38e117ac
Use crate:: for assert_linked instead of super::super::
...
PiperOrigin-RevId: 673847235
3 months ago
Protobuf Team Bot
cb6b460cc9
Remove staticanalysis best practices options from enums.proto
...
PiperOrigin-RevId: 673845079
3 months ago
Zoey Greer
5d9deab879
Replace deprecated use of `toBytes()` with `Character` property `.code` ( #18236 )
...
Addresses the warning which is otherwise output during build asking that we do this.
Closes #18236
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/18236 from tempoz:tempoz-fix-deprecated-use-of-to-bytes bb2398c45d
PiperOrigin-RevId: 673844589
3 months ago