1 #include "rust/cpp_kernel/debug.h" 2 3 #include <string> 4 5 #include "google/protobuf/message_lite.h" 6 #include "rust/cpp_kernel/strings.h" 7 8 extern "C" { 9 proto2_rust_utf8_debug_string(const google::protobuf::MessageLite * msg)10google::protobuf::rust::RustStringRawParts proto2_rust_utf8_debug_string( 11 const google::protobuf::MessageLite* msg) { 12 std::string text = google::protobuf::Utf8Format(*msg); 13 return google::protobuf::rust::RustStringRawParts(text); 14 } 15 16 } // extern "C" 17