Commit graph

7 commits

Author SHA1 Message Date
Dmitri Gribenko
744c9ddfc5 Rename #[googletest::test] to #[gtest]
PiperOrigin-RevId: 661993029
2024-08-12 01:48:49 -07:00
Dmitri Gribenko
0a917b95f2 Use #[googletest::test] in Protobuf Rust
PiperOrigin-RevId: 654726974
2024-07-22 06:59:28 -07:00
Protobuf Team Bot
f810cc5b66 Enable MessageLite::DebugString to use Message::DebugString where possible.
This will mean that calling DebugString on a MessageLite* which is actually a full Message will get the debug info instead of the minimal output.

PiperOrigin-RevId: 649103508
2024-07-03 09:37:37 -07:00
Jakob Buchgraber
ec61d65a23 Fix debug_test to work with C++ lite
This change adds a cfg attribute 'cpp_lite' to the C++ kernel of Protobuf Rust. If C++ lite is selected on the command line, the cfg attribute 'cpp_lite' is set. The root cause of the test failure was that the Debug implementation for full C++ protos uses  text proto which is not available in C++ lite. The fix uses the 'cpp_lite' cfg attribute to select a different Debug implementation that doesn't rely on text proto

PiperOrigin-RevId: 640552701
2024-06-05 09:36:40 -07:00
Marcel Hlopko
69a26b217d Use the name of the rust_proto_library as the crate name
PiperOrigin-RevId: 634414403
2024-05-16 09:00:50 -07:00
Protobuf Team Bot
958dd59892 Remove the public _mut() accessors from string fields.
PiperOrigin-RevId: 615824279
2024-03-14 10:28:56 -07:00
Jakob Buchgraber
03687b798b #rust #protobuf Implement custom Debug for C++ kernel
This change implements a custom Debug for messages, views and muts in the C++ kernel. Debug defers to proto2::Utf8Format.

It implements this only for the C++ kernel. We will need to pull in additional dependencies beyond minitables to implement it for UPB as well. This will be done at a later point.

PiperOrigin-RevId: 613191236
2024-03-06 06:21:49 -08:00