MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / dependency

Function dependency

library/src/bootstrap.rs:193–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191static DEPENDENCY: OnceLock<Dependency> = OnceLock::new();
192
193pub async fn dependency() -> &'static Dependency {
194 let dp = match DEPENDENCY.get() {
195 None => {
196 let dependency = Dependency;
197
198 DEPENDENCY.get_or_init(|| dependency)
199 }
200 Some(dependency) => dependency,
201 };
202 dp
203}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected