tag2upload_service_manager/
lib.rs

1#![allow(clippy::style, clippy::complexity)]
2#![deny(clippy::unwrap_used)]
3#![deny(clippy::dbg_macro)]
4#![allow(unstable_name_collisions)] // what a mess; rust-lang/rfcs!3240
5#![allow(clippy::assigning_clones)] // .clone_into() is potentially confusing
6#![doc=include_str!("../README.md")]
7
8// Conventions:
9//
10// We use `T O D O` for things we may wish to change one day.
11// We use `F I X M E` for things which should be fixed before deployment.
12
13pub mod prelude;
14
15#[macro_use]
16pub mod error;
17#[macro_use]
18pub mod utils;
19#[macro_use]
20pub mod sql_types;
21#[macro_use]
22pub mod bsql_rows;
23#[macro_use]
24pub mod bsql_queries;
25#[macro_use]
26pub mod types_string_abstract;
27#[macro_use]
28pub mod t2umeta_abstract;
29#[macro_use]
30pub mod o2m_support;
31#[macro_use]
32pub mod ui_render;
33#[macro_use]
34pub mod ui_abstract;
35#[macro_use]
36pub mod global;
37
38pub mod cli_common;
39pub mod cli_cli;
40pub mod config;
41pub mod db_data;
42pub mod db_schema;
43pub mod db_support;
44pub mod db_workflow;
45pub mod dns;
46pub mod expire;
47pub mod fetcher;
48pub mod fmt_cmp;
49pub mod forge;
50pub mod gitclone;
51pub mod gitlab;
52pub mod logging;
53pub mod mini_sqlite_dump;
54pub mod o2m_listener;
55pub mod o2m_messages;
56pub mod o2m_tracker;
57pub mod t2umeta;
58pub mod tracing_logrotate;
59pub mod types;
60pub mod ui_routes;
61pub mod ui_vhost;
62pub mod version;
63pub mod webhook;
64
65#[cfg(test)]
66mod test;
67
68#[doc(hidden)]
69pub use derive_deftly;
70
71#[cfg(not(test))]
72mod test {
73    #[derive(Default, Debug)]
74    pub struct GlobalSupplement;
75
76    #[derive(Default, Debug)]
77    pub struct StateSupplement;
78
79    #[derive(Debug, Clone, Copy)]
80    pub struct CodeLocation {
81        #[doc(hidden)]
82        pub _hidden: (),
83    }
84
85    #[derive(Debug)]
86    pub struct CodeLocationAccumulator<'la>(&'la mut void::Void);
87    impl CodeLocationAccumulator<'_> {
88        pub fn push(&mut self, _: CodeLocation) {
89            void::unreachable(*self.0)
90        }
91    }
92
93    #[macro_export]
94    macro_rules! code_location { {} => {
95        $crate::CodeLocation { _hidden: () }
96    }}
97}
98
99pub use test::{CodeLocation, CodeLocationAccumulator};