forked from tokio-rs/prost
-
Notifications
You must be signed in to change notification settings - Fork 3
/
lib.rs
95 lines (82 loc) · 2.55 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#![allow(clippy::large_enum_variant, clippy::unreadable_literal)]
pub mod benchmarks {
include!(concat!(env!("OUT_DIR"), "/benchmarks.rs"));
pub mod dataset {
use std::path::Path;
pub fn google_message1_proto2() -> &'static Path {
Path::new(concat!(
env!("PROTOBUF"),
"/share/dataset.google_message1_proto2.pb"
))
}
pub fn google_message1_proto3() -> &'static Path {
Path::new(concat!(
env!("PROTOBUF"),
"/share/dataset.google_message1_proto3.pb"
))
}
pub fn google_message2() -> &'static Path {
Path::new(concat!(
env!("PROTOBUF"),
"/share/dataset.google_message2.pb"
))
}
pub fn google_message3_1() -> &'static Path {
Path::new(concat!(
env!("PROTOBUF"),
"/share/dataset.google_message3_1.pb"
))
}
pub fn google_message3_5() -> &'static Path {
Path::new(concat!(
env!("PROTOBUF"),
"/share/dataset.google_message3_5.pb"
))
}
pub fn google_message4() -> &'static Path {
Path::new(concat!(
env!("PROTOBUF"),
"/share/dataset.google_message4.pb"
))
}
}
pub mod google_message3 {
include!(concat!(env!("OUT_DIR"), "/benchmarks.google_message3.rs"));
}
pub mod google_message4 {
include!(concat!(env!("OUT_DIR"), "/benchmarks.google_message4.rs"));
}
pub mod proto2 {
include!(concat!(env!("OUT_DIR"), "/benchmarks.proto2.rs"));
}
pub mod proto3 {
include!(concat!(env!("OUT_DIR"), "/benchmarks.proto3.rs"));
}
}
pub mod conformance {
use std::path::Path;
pub fn test_runner() -> &'static Path {
Path::new(concat!(env!("PROTOBUF"), "/bin/conformance-test-runner"))
}
include!(concat!(env!("OUT_DIR"), "/conformance.rs"));
}
pub mod test_messages {
pub mod proto2 {
include!(concat!(
env!("OUT_DIR"),
"/protobuf_test_messages.proto2.rs"
));
}
pub mod proto3 {
include!(concat!(
env!("OUT_DIR"),
"/protobuf_test_messages.proto3.rs"
));
}
pub mod protobuf_unittest {
include!(concat!(env!("OUT_DIR"), "/protobuf_unittest.rs"));
}
pub mod protobuf_unittest_import {
include!(concat!(env!("OUT_DIR"), "/protobuf_unittest_import.rs"));
}
}