icall/
lib.rs

1#![feature(doc_auto_cfg)]
2#![feature(doc_cfg)]
3#![allow(non_camel_case_types)]
4#![allow(non_snake_case)]
5#![allow(non_upper_case_globals)]
6#![allow(unused_imports)]
7#![allow(unused_variables)]
8#![allow(irrefutable_let_patterns)]
9#![allow(rustdoc::broken_intra_doc_links)]
10// Modules are generated based on the naming conventions of protobuf, which might cause "module inception"
11#![allow(clippy::module_inception)]
12// This is all generated code, so "manually" implementing derivable impls is okay
13#![allow(clippy::derivable_impls)]
14// For enums with many variants, the matches!(...) macro isn't obviously better
15#![allow(clippy::match_like_matches_macro)]
16// Used by extension codegen
17#![allow(clippy::redundant_closure)]
18// TODO: Ideally we don't allow this
19#![allow(clippy::option_as_ref_deref)]
20// TODO: Ideally we don't allow this
21#![allow(clippy::match_single_binding)]
22
23mod proto;
24pub use proto::*;
25
26#[cfg(feature = "err")]
27pub type CodeBody = (State, Vec<u8>);
28
29#[cfg(feature = "err")]
30pub mod err;
31
32pub use err::code::code as err_code;