// Protocol Buffers - Google's data interchange format // Copyright 2023 Google LLC. All rights reserved. // // 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 #ifndef GOOGLE_PROTOBUF_COMPILER_RUST_NAMING_H__ #define GOOGLE_PROTOBUF_COMPILER_RUST_NAMING_H__ #include #include "absl/strings/string_view.h" #include "google/protobuf/compiler/rust/context.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/descriptor.pb.h" namespace google { namespace protobuf { namespace compiler { namespace rust { std::string GetCrateName(Context dep); std::string GetRsFile(Context file); std::string GetThunkCcFile(Context file); std::string GetHeaderFile(Context file); std::string Thunk(Context field, absl::string_view op); std::string Thunk(Context field, absl::string_view op); std::string Thunk(Context msg, absl::string_view op); std::string PrimitiveRsTypeName(const FieldDescriptor& desc); std::string FieldInfoComment(Context field); std::string RustModule(Context msg); std::string RustInternalModuleName(Context file); std::string GetCrateRelativeQualifiedPath(Context msg); } // namespace rust } // namespace compiler } // namespace protobuf } // namespace google #endif // GOOGLE_PROTOBUF_COMPILER_RUST_NAMING_H__