dep-protobuf/rust
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
..
bazel Add required_providers to proto aspect 2026-07-29 06:10:06 -07:00
cpp_kernel rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
protobuf_macros Internal cleanup. 2026-01-15 07:26:04 -08:00
release_crates Re-export to google-protobuf crate in 0.x.y for 36.0 and above 2026-08-12 15:12:23 -07:00
test rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
upb Internal change 2026-06-29 12:35:21 -07:00
upb_kernel rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
BUILD rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
codegen_traits.rs RustProto: add serialized_len()->usize 2026-04-23 14:34:21 -07:00
cord.rs Remove the Proxy, ViewProxy, and MutProxy traits 2025-10-08 10:20:05 -07:00
defs.bzl Label rust:use_upb_kernel to resolve this label against protobufs' //rust, instead of a local repository's 2026-06-08 06:33:05 -07:00
dist.bzl Create /release_crates/ directory that contains one directory for each of our 3 crates that we package up. 2024-12-03 13:00:05 -08:00
enum.rs Added appropriate super-traits to Enum. 2026-03-23 14:40:03 -07:00
extension.rs Add Private passkey to extension api that is only intended to be available for internal and gencode use. 2026-04-14 06:48:28 -07:00
gtest_matchers.rs Make import! of protobuf_gtest_matchers work properly. 2024-10-22 12:15:04 -07:00
gtest_matchers_impl.rs rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
internal.rs rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
map.rs Inline hot methods on Map and in generated code 2026-07-24 13:50:52 -07:00
prelude.rs Change Rust prelude to bring in traits as _ 2025-09-10 12:54:18 -07:00
primitive.rs Fix that f32 and f64 were incorrectly tagged as legal for MapKeys in RustProto. 2026-01-27 12:52:31 -08:00
protobuf.rs internal change 2026-08-05 10:29:52 -07:00
protobuf_lite.rs internal change 2026-08-05 10:29:52 -07:00
proxied.rs Make any &T impl AsView if T impl AsView 2026-03-13 12:35:19 -07:00
repeated.rs Remove iterator trait implementations for RepeatedMutIter 2026-08-12 09:57:23 -07:00
rules.bzl internal change 2025-11-05 13:06:05 -08:00
shared.rs Added infrastructure for Rust Extensions support, but left it disabled for now. 2026-04-08 08:08:46 -07:00
singular.rs Trait clarity effort: introduce Singular trait, for types which are allowed as simple fields 2026-01-27 07:33:35 -08:00
string.rs Allow ProtoStr to be used in const contexts. 2026-03-20 09:34:26 -07:00