• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2023 Google LLC.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 #ifndef GOOGLE_PROTOBUF_COMPILER_RUST_MESSAGE_H__
9 #define GOOGLE_PROTOBUF_COMPILER_RUST_MESSAGE_H__
10 
11 #include <memory>
12 #include <vector>
13 
14 #include "google/protobuf/compiler/rust/accessors/accessors.h"
15 #include "google/protobuf/compiler/rust/context.h"
16 #include "google/protobuf/descriptor.h"
17 
18 namespace google {
19 namespace protobuf {
20 namespace compiler {
21 namespace rust {
22 
23 // Generates code for a particular message in `.pb.rs`.
24 void GenerateRs(Context& ctx, const Descriptor& msg);
25 
26 // Generates code for a particular message in `.pb.thunk.cc`.
27 void GenerateThunksCc(Context& ctx, const Descriptor& msg);
28 
29 }  // namespace rust
30 }  // namespace compiler
31 }  // namespace protobuf
32 }  // namespace google
33 
34 #endif  // GOOGLE_PROTOBUF_COMPILER_RUST_MESSAGE_H__
35