Skip to content

Commit db1c936

Browse files
authored
chore(types): Remove including generated code (#801)
1 parent 0c350dc commit db1c936

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

prost-types/src/lib.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,20 @@
1111
1212
#![cfg_attr(not(feature = "std"), no_std)]
1313

14+
#[rustfmt::skip]
15+
mod compiler;
16+
mod datetime;
17+
#[rustfmt::skip]
18+
mod protobuf;
19+
1420
use core::convert::TryFrom;
1521
use core::fmt;
1622
use core::i32;
1723
use core::i64;
1824
use core::str::FromStr;
1925
use core::time;
2026

21-
include!("protobuf.rs");
22-
pub mod compiler {
23-
include!("compiler.rs");
24-
}
25-
26-
mod datetime;
27+
pub use protobuf::*;
2728

2829
// The Protobuf `Duration` and `Timestamp` types can't delegate to the standard library equivalents
2930
// because the Protobuf versions are signed. To make them easier to work with, `From` conversions

0 commit comments

Comments
 (0)