Skip to main content

sword_core/
lib.rs

1mod config;
2mod injectables;
3pub mod layers;
4mod state;
5
6pub use injectables::*;
7
8pub use config::*;
9pub use state::*;
10
11pub(crate) type RwMap<K, V> = parking_lot::RwLock<std::collections::HashMap<K, V>>;
12
13#[macro_export]
14macro_rules! inventory_submit {
15    ( [ $( $registrar:expr ),* $(,)? ] ) => {
16        $(
17            const _: () = {
18                inventory::submit! {
19                    $registrar
20                }
21            };
22        )*
23    };
24}