dep-protobuf/rust/test
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
..
cpp Set Rust edition 2024 for all protobuf and upb rust targets. 2026-06-23 11:29:41 -07:00
encode_raw_string_as_crate_name rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
more_test_protos Fix protos with multiple files with same basename 2026-01-14 04:54:09 -08:00
p rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
q rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
rust_proto_library_unit_test rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
shared rust protobuf matchers: Add a partially matcher to mirror C++ 2026-08-13 09:24:36 -07:00
treeshaking Add treeshaking tests for protobuf rust on android and wasm 2026-06-07 22:48:57 -07:00
upb Set Rust edition 2024 for all protobuf and upb rust targets. 2026-06-23 11:29:41 -07:00
bad_names.proto Mangle types named XyzView if there is any direct sibling named Xyz 2026-03-26 15:15:22 -07:00
BUILD Set Rust edition 2024 for all protobuf and upb rust targets. 2026-06-23 11:29:41 -07:00
child.proto Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full. 2023-09-08 17:51:26 -07:00
dots_in_package.proto Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full. 2023-09-08 17:51:26 -07:00
edition2023.proto Allow non-repeated StringPiece accessors to be generated. 2024-06-11 07:46:59 -07:00
enums.proto Remove staticanalysis best practices options from enums.proto 2024-09-12 07:59:34 -07:00
extensions.proto Added infrastructure for Rust Extensions support, but left it disabled for now. 2026-04-08 08:08:46 -07:00
extensions_separate_file.proto Added infrastructure for Rust Extensions support, but left it disabled for now. 2026-04-08 08:08:46 -07:00
fields_with_imported_types.proto Rust: ensure we can handle name collision between local module and crate dependency 2024-12-05 08:37:25 -08:00
import_public.proto Fix import path for rust proto files. 2024-10-04 16:59:26 -07:00
import_public2.proto Fix import path for rust proto files. 2024-10-04 16:59:26 -07:00
import_public_grandparent.proto Stop codegenning module for .proto package 2024-01-19 09:35:46 -08:00
import_public_non_primary_src1.proto Stop codegenning module for .proto package 2024-01-19 09:35:46 -08:00
import_public_non_primary_src2.proto Stop codegenning module for .proto package 2024-01-19 09:35:46 -08:00
import_public_primary_src.proto Fix import path for rust proto files. 2024-10-04 16:59:26 -07:00
imported_types.proto #protobuf #rust Generate fields with imported types 2024-01-25 07:46:38 -08:00
map_unittest.proto Move Rust unit tests to use reduced forks of TestAllTypes messages. 2024-10-31 14:17:10 -07:00
nested.proto Use self accessors for accessing maps in views 2024-01-19 07:08:30 -08:00
no_package.proto Fix import path for rust proto files. 2024-10-04 16:59:26 -07:00
no_package_import.proto Remove proto_best_practices from Rust test files in OSS 2024-09-19 09:10:44 -07:00
no_package_other.proto Remove proto_best_practices from Rust test files in OSS 2024-09-19 09:10:44 -07:00
package.proto Fix import path for rust proto files. 2024-10-04 16:59:26 -07:00
package_disabiguation1.proto Stop codegenning module for .proto package 2024-01-19 09:35:46 -08:00
package_disabiguation2.proto Fix import path for rust proto files. 2024-10-04 16:59:26 -07:00
package_import.proto Generate pub use for imported enums 2024-01-08 18:52:27 -08:00
package_other.proto Fix issue where nested messages in non-primary .proto files couldn't be used. 2024-02-05 11:41:08 -08:00
package_other_different.proto Generate pub use for imported enums 2024-01-08 18:52:27 -08:00
parent.proto Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full. 2023-09-08 17:51:26 -07:00
same_name_direct_deps.proto rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
same_name_direct_deps_consumer.rs rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
same_name_double_alias_exported_deps.proto rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
same_name_double_alias_exported_deps_consumer.rs rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
same_name_exported_deps.proto rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
same_name_exported_deps_consumer.rs rust protobuf: use crate name aliases to disambiguate generated dependencies 2026-01-13 04:57:57 -08:00
srcsless_library_test_child.proto Fix regression with src-less proto_library with 0 srcs. 2025-01-08 09:32:51 -08:00
srcsless_library_test_parent.proto Fix regression with src-less proto_library with 0 srcs. 2025-01-08 09:32:51 -08:00
unittest.proto Move Rust unit tests to use reduced forks of TestAllTypes messages. 2024-10-31 14:17:10 -07:00
unittest_import.proto Move Rust unit tests to use reduced forks of TestAllTypes messages. 2024-10-31 14:17:10 -07:00
unittest_proto3.proto Move Rust unit tests to use reduced forks of TestAllTypes messages. 2024-10-31 14:17:10 -07:00
unittest_proto3_optional.proto Move Rust unit tests to use reduced forks of TestAllTypes messages. 2024-10-31 14:17:10 -07:00