patchify/
lib.rs

1//! The Patchify crate is an auto-update library, providing the ability for Rust
2//! applications to automatically update themselves.
3//! 
4
5
6
7//		Global configuration																							
8
9//	Customisations of the standard linting configuration
10#![allow(clippy::multiple_crate_versions, reason = "Cannot resolve all these")]
11#![allow(clippy::items_after_test_module, reason = "Not needed with separated tests")]
12
13//	Lints specifically disabled for unit tests
14#![cfg_attr(test, allow(
15	non_snake_case,
16	unreachable_pub,
17	clippy::arithmetic_side_effects,
18	clippy::cast_lossless,
19	clippy::cast_precision_loss,
20	clippy::cognitive_complexity,
21	clippy::default_numeric_fallback,
22	clippy::exhaustive_enums,
23	clippy::exhaustive_structs,
24	clippy::expect_used,
25	clippy::indexing_slicing,
26	clippy::let_underscore_must_use,
27	clippy::let_underscore_untyped,
28	clippy::missing_assert_message,
29	clippy::missing_panics_doc,
30	clippy::must_use_candidate,
31	clippy::panic,
32	clippy::print_stdout,
33	clippy::too_many_lines,
34	clippy::unwrap_in_result,
35	clippy::unwrap_used,
36	reason = "Not useful in unit tests"
37))]
38
39
40
41//		Modules																											
42
43pub mod server;
44pub mod client;
45
46mod responses;
47
48#[cfg(test)]
49#[path = "tests/common.rs"]
50mod common;
51
52#[cfg(test)]
53#[path = "tests/mocks.rs"]
54mod mocks;
55
56
57
58//		Packages																										
59
60#[cfg(test)]
61mod integration_test_package_usage {
62	use bytes as _;
63	use test_binary as _;
64	use tower_http as _;
65	use tracing_subscriber as _;
66	use wiremock as _;
67}
68
69#[cfg(test)]
70mod examples_package_usage {
71	use figment as _;
72	use smart_default as _;
73}
74
75