Skip to content
Snippets Groups Projects
Commit ef8d2557 authored by Éloïs's avatar Éloïs
Browse files

feat(wot): create static MAIN_WOT

parent 0b26b587
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ path = "src/lib.rs"
[dependencies]
log = "0.4.8"
once_cell = "1.7"
parking_lot = "0.11"
rayon = "1.3.0"
serde = { version = "1.0.105", features = ["derive"] }
......
......@@ -44,6 +44,11 @@ pub mod operations;
pub use crate::data::{WebOfTrust, WotId};
use once_cell::sync::OnceCell;
/// Main wot instance
pub static MAIN_WOT: OnceCell<parking_lot::RwLock<data::rusty::RustyWebOfTrust>> = OnceCell::new();
#[cfg(test)]
mod tests {
use super::*;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment