medea_control_api_proto/
lib.rs

1#![cfg_attr(any(doc, test), doc = include_str!("../README.md"))]
2#![cfg_attr(not(any(doc, test)), doc = env!("CARGO_PKG_NAME"))]
3#![deny(nonstandard_style, rustdoc::all, trivial_casts, trivial_numeric_casts)]
4#![forbid(non_ascii_idents, unsafe_code)]
5#![warn(
6    clippy::absolute_paths,
7    clippy::allow_attributes,
8    clippy::allow_attributes_without_reason,
9    clippy::as_conversions,
10    clippy::as_pointer_underscore,
11    clippy::as_ptr_cast_mut,
12    clippy::assertions_on_result_states,
13    clippy::branches_sharing_code,
14    clippy::cfg_not_test,
15    clippy::clear_with_drain,
16    clippy::clone_on_ref_ptr,
17    clippy::collection_is_never_read,
18    clippy::create_dir,
19    clippy::dbg_macro,
20    clippy::debug_assert_with_mut_call,
21    clippy::decimal_literal_representation,
22    clippy::default_union_representation,
23    clippy::derive_partial_eq_without_eq,
24    clippy::doc_include_without_cfg,
25    clippy::else_if_without_else,
26    clippy::empty_drop,
27    clippy::empty_structs_with_brackets,
28    clippy::equatable_if_let,
29    clippy::empty_enum_variants_with_brackets,
30    clippy::exit,
31    clippy::expect_used,
32    clippy::fallible_impl_from,
33    clippy::filetype_is_file,
34    clippy::float_cmp_const,
35    clippy::fn_to_numeric_cast_any,
36    clippy::format_push_string,
37    clippy::get_unwrap,
38    clippy::if_then_some_else_none,
39    clippy::imprecise_flops,
40    clippy::infinite_loop,
41    clippy::iter_on_empty_collections,
42    clippy::iter_on_single_items,
43    clippy::iter_over_hash_type,
44    clippy::iter_with_drain,
45    clippy::large_include_file,
46    clippy::large_stack_frames,
47    clippy::let_underscore_untyped,
48    clippy::literal_string_with_formatting_args,
49    clippy::lossy_float_literal,
50    clippy::map_err_ignore,
51    clippy::map_with_unused_argument_over_ranges,
52    clippy::mem_forget,
53    clippy::missing_assert_message,
54    clippy::missing_asserts_for_indexing,
55    clippy::missing_const_for_fn,
56    clippy::missing_docs_in_private_items,
57    clippy::module_name_repetitions,
58    clippy::multiple_inherent_impl,
59    clippy::multiple_unsafe_ops_per_block,
60    clippy::mutex_atomic,
61    clippy::mutex_integer,
62    clippy::needless_collect,
63    clippy::needless_pass_by_ref_mut,
64    clippy::needless_raw_strings,
65    clippy::non_zero_suggestions,
66    clippy::nonstandard_macro_braces,
67    clippy::option_if_let_else,
68    clippy::or_fun_call,
69    clippy::panic_in_result_fn,
70    clippy::partial_pub_fields,
71    clippy::pathbuf_init_then_push,
72    clippy::pedantic,
73    clippy::print_stderr,
74    clippy::print_stdout,
75    clippy::pub_without_shorthand,
76    clippy::rc_buffer,
77    clippy::rc_mutex,
78    clippy::read_zero_byte_vec,
79    clippy::redundant_clone,
80    clippy::redundant_type_annotations,
81    clippy::renamed_function_params,
82    clippy::ref_patterns,
83    clippy::rest_pat_in_fully_bound_structs,
84    clippy::same_name_method,
85    clippy::semicolon_inside_block,
86    clippy::set_contains_or_insert,
87    clippy::shadow_unrelated,
88    clippy::significant_drop_in_scrutinee,
89    clippy::significant_drop_tightening,
90    clippy::str_to_string,
91    clippy::string_add,
92    clippy::string_lit_as_bytes,
93    clippy::string_lit_chars_any,
94    clippy::string_slice,
95    clippy::string_to_string,
96    clippy::suboptimal_flops,
97    clippy::suspicious_operation_groupings,
98    clippy::suspicious_xor_used_as_pow,
99    clippy::tests_outside_test_module,
100    clippy::todo,
101    clippy::too_long_first_doc_paragraph,
102    clippy::trailing_empty_array,
103    clippy::transmute_undefined_repr,
104    clippy::trivial_regex,
105    clippy::try_err,
106    clippy::undocumented_unsafe_blocks,
107    clippy::unimplemented,
108    clippy::uninhabited_references,
109    clippy::unnecessary_safety_comment,
110    clippy::unnecessary_safety_doc,
111    clippy::unnecessary_self_imports,
112    clippy::unnecessary_struct_initialization,
113    clippy::unneeded_field_pattern,
114    clippy::unused_peekable,
115    clippy::unused_result_ok,
116    clippy::unused_trait_names,
117    clippy::unwrap_in_result,
118    clippy::unwrap_used,
119    clippy::use_debug,
120    clippy::use_self,
121    clippy::useless_let_if_seq,
122    clippy::verbose_file_reads,
123    clippy::while_float,
124    clippy::wildcard_enum_match_arm,
125    ambiguous_negative_literals,
126    closure_returning_async_block,
127    future_incompatible,
128    impl_trait_redundant_captures,
129    let_underscore_drop,
130    macro_use_extern_crate,
131    meta_variable_misuse,
132    missing_abi,
133    missing_copy_implementations,
134    missing_debug_implementations,
135    missing_docs,
136    redundant_lifetimes,
137    rust_2018_idioms,
138    single_use_lifetimes,
139    unit_bindings,
140    unnameable_types,
141    unreachable_pub,
142    unstable_features,
143    unused,
144    variant_size_differences
145)]
146
147pub mod callback;
148pub mod control;
149#[cfg(feature = "direct")]
150pub mod direct;
151#[cfg(feature = "grpc")]
152pub mod grpc;
153
154#[doc(inline)]
155pub use self::{
156    callback::Api as CallbackApi,
157    control::{
158        Api as ControlApi, Element, Elements, Endpoint, Fid, Member, Ping,
159        Pong, Room, RootElement, endpoint, member, room,
160    },
161};