blob: 14828b9d4886bb5ef15c11eeb27c166c1f4f3369 [file]
// Protocol Buffers - Google's data interchange format
// Copyright 2026 Google LLC
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "rust/cpp_kernel/debug.h"
#include <string>
#include "google/protobuf/message_lite.h"
#include "rust/cpp_kernel/strings.h"
extern "C" {
google::protobuf::rust::RustStringRawParts proto2_rust_utf8_debug_string(
const google::protobuf::MessageLite* msg) {
std::string text = google::protobuf::Utf8Format(*msg);
return google::protobuf::rust::RustStringRawParts(text);
}
} // extern "C"