Skip to main content

hoy_protocol/
lib.rs

1//! Hoy-protocol documentation.
2
3#![allow(clippy::module_name_repetitions)]
4#![allow(clippy::multiple_crate_versions)]
5// clippy WARN level lints
6#![warn(
7    //missing_docs,
8    //clippy::cargo,
9    clippy::pedantic,
10    clippy::nursery,
11    clippy::dbg_macro,
12    clippy::unwrap_used,
13    clippy::integer_division,
14    clippy::large_include_file,
15    clippy::map_err_ignore,
16    clippy::missing_docs_in_private_items,
17    clippy::panic,
18    clippy::todo,
19    clippy::undocumented_unsafe_blocks,
20    clippy::unimplemented,
21    clippy::unreachable
22)]
23// clippy WARN level lints, that can be upgraded to DENY if preferred
24#![warn(
25    clippy::float_arithmetic,
26    clippy::arithmetic_side_effects,
27    clippy::modulo_arithmetic,
28    clippy::as_conversions,
29    clippy::assertions_on_result_states,
30    clippy::clone_on_ref_ptr,
31    clippy::create_dir,
32    clippy::default_union_representation,
33    clippy::deref_by_slicing,
34    clippy::empty_drop,
35    clippy::empty_structs_with_brackets,
36    clippy::exit,
37    clippy::filetype_is_file,
38    clippy::float_cmp_const,
39    clippy::if_then_some_else_none,
40    clippy::indexing_slicing,
41    clippy::let_underscore_must_use,
42    clippy::lossy_float_literal,
43    clippy::pattern_type_mismatch,
44    clippy::string_slice,
45    clippy::try_err
46)]
47// clippy DENY level lints, they always have a quick fix that should be preferred
48#![deny(
49    clippy::wildcard_imports,
50    clippy::multiple_inherent_impl,
51    clippy::rc_buffer,
52    clippy::rc_mutex,
53    clippy::rest_pat_in_fully_bound_structs,
54    clippy::same_name_method,
55    clippy::self_named_module_files,
56    clippy::shadow_unrelated,
57    clippy::str_to_string,
58    clippy::string_add,
59    clippy::implicit_clone,
60    clippy::unnecessary_self_imports,
61    clippy::unneeded_field_pattern,
62    clippy::unseparated_literal_suffix,
63    clippy::verbose_file_reads
64)]
65
66/// Message stream codec module.
67pub mod codec;
68/// Hoy-protocol error definitions.
69pub mod error;
70/// Wire frame buffer module.
71pub mod frame_buffer;
72/// Protocol packet definitions.
73pub mod packet;