dep-protobuf/rust/cpp_kernel
Protobuf Team Bot e1c5f3ac47 rust protobuf matchers: Add a partially matcher to mirror C++
It is common to want to match only a subset of fields in large protobufs, and doing that in rust right now requires manually clearing out the fields in the `actual` message that we don't care about. This is a pain, and a worse experience when compared to C++.

Like in C++, when doing partial matching, only fields set in the expected protobuf message are compared, while extra fields set only in the actual message are ignored.

When using the C++ kernel we leverage `proto2::util::MessageDifferencer`, and for the UPB kernel we use the `kUpb_CompareOption_Partial` option.

PiperOrigin-RevId: 964125682
2026-08-13 09:24:36 -07:00
..
compare.cc rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
compare.h rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
debug.cc Enable MessageLite::DebugString to use Message::DebugString where possible. 2024-07-03 09:37:37 -07:00
debug.h Enable MessageLite::DebugString to use Message::DebugString where possible. 2024-07-03 09:37:37 -07:00
extension.cc Use ClassData instead of a prototype throughout lazy field / extensions when possible. 2026-07-25 09:22:11 -07:00
extension.rs Remove unused Matcher_Eq import in rust 2026-06-05 13:17:35 -07:00
interop.rs Refactor: Move interop traits to kernel-specific modules. 2026-03-31 12:04:34 -07:00
map.cc Automated Code Change 2026-06-14 20:35:06 -07:00
map.rs Refactor: Split upb and cpp backends into submodules 2026-03-20 11:13:43 -07:00
message.cc Internal change. 2026-07-20 13:13:44 -07:00
message.rs rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
mod.rs Added infrastructure for Rust Extensions support, but left it disabled for now. 2026-04-08 08:08:46 -07:00
raw.rs Added infrastructure for Rust Extensions support, but left it disabled for now. 2026-04-08 08:08:46 -07:00
repeated.cc Pass down Arena* to RepeatedPtrFieldBase::AddInternal. 2025-09-15 17:27:17 -07:00
repeated.rs Added infrastructure for Rust Extensions support, but left it disabled for now. 2026-04-08 08:08:46 -07:00
rust_alloc_for_cpp_api.h Change to proto2_rust C prefix and proto2::rust C++ namespace 2024-07-02 11:44:17 -07:00
rust_alloc_for_cpp_api.rs Start testing against Rust edition 2024 2025-10-07 09:21:51 -07:00
serialized_data.h Make SerializedData into a POD struct. 2024-09-18 14:17:14 -07:00
string.rs Refactor: Split upb and cpp backends into submodules 2026-03-20 11:13:43 -07:00
strings.cc Make conversion functions for into c++ string types from PtrAndLen. 2024-12-10 11:15:00 -08:00
strings.h Make conversion functions for into c++ string types from PtrAndLen. 2024-12-10 11:15:00 -08:00