-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Jangan taruh autogen proto file di dalam src, tapi taru…
…h di `OUT_DIR` lalu di-include via `mod.rs`, hal ini dikarenakan oleh: rust-lang/cargo#5584 Tambah beberapa proto message.
- Loading branch information
robin
committed
Feb 3, 2019
1 parent
f04ce74
commit 8bc37f2
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
mod apf; | ||
//! Wrapper untuk meng-import struct dari protobuf autogenerated output files. | ||
//! | ||
|
||
pub use self::apf::Transfer; | ||
#![allow(bare_trait_objects)] | ||
#![allow(renamed_and_removed_lints)] | ||
#![allow(unknown_lints)] | ||
#![allow(clippy)] | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
|
||
#![allow(box_pointers)] | ||
#![allow(dead_code)] | ||
#![allow(missing_docs)] | ||
#![allow(non_camel_case_types)] | ||
#![allow(non_snake_case)] | ||
#![allow(non_upper_case_globals)] | ||
#![allow(trivial_casts)] | ||
#![allow(unsafe_code)] | ||
#![allow(unused_imports)] | ||
#![allow(unused_results)] | ||
|
||
mod inner { | ||
include!(concat!(env!("OUT_DIR"), "/apf.rs")); | ||
} | ||
|
||
pub use self::inner::{Transfer, Credit, Debit}; |