ethabi_contract/lib.rs
1// Copyright 2015-2019 Parity Technologies
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9#[macro_export]
10macro_rules! use_contract {
11 ($module: ident, $path: expr) => {
12 #[allow(dead_code)]
13 #[allow(missing_docs)]
14 #[allow(unused_imports)]
15 #[allow(unused_mut)]
16 #[allow(unused_variables)]
17 pub mod $module {
18 #[derive(ethabi_derive::EthabiContract)]
19 #[ethabi_contract_options(path = $path)]
20 struct _Dummy;
21 }
22 };
23}