Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:12:00

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2023 Google LLC.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef GOOGLE_PROTOBUF_COMPILER_RUST_MESSAGE_H__
0009 #define GOOGLE_PROTOBUF_COMPILER_RUST_MESSAGE_H__
0010 
0011 #include <memory>
0012 #include <vector>
0013 
0014 #include "google/protobuf/compiler/rust/accessors/accessors.h"
0015 #include "google/protobuf/compiler/rust/context.h"
0016 #include "google/protobuf/descriptor.h"
0017 
0018 namespace google {
0019 namespace protobuf {
0020 namespace compiler {
0021 namespace rust {
0022 
0023 // Generates code for a particular message in `.pb.rs`.
0024 void GenerateRs(Context& ctx, const Descriptor& msg);
0025 
0026 // Generates code for a particular message in `.pb.thunk.cc`.
0027 void GenerateThunksCc(Context& ctx, const Descriptor& msg);
0028 
0029 }  // namespace rust
0030 }  // namespace compiler
0031 }  // namespace protobuf
0032 }  // namespace google
0033 
0034 #endif  // GOOGLE_PROTOBUF_COMPILER_RUST_MESSAGE_H__