MCPcopy Create free account
hub / github.com/dada-lang/dada / root

Function root

components/dada-debug/src/root.rs:37–40  ·  view source on GitHub ↗

basic handler that responds with a static string

(state: &State)

Source from the content-addressed store, hash-verified

35
36// basic handler that responds with a static string
37pub async fn root(state: &State) -> anyhow::Result<String> {
38 let events = root_events(&state.debug_events.lock().unwrap())?;
39 crate::hbs::render("index", &events)
40}
41
42pub async fn root_data(state: &State) -> anyhow::Result<Vec<RootEvent>> {
43 let events = state.debug_events.lock().unwrap();

Callers 5

rootMethod · 0.50
rootMethod · 0.50
debug.rsFile · 0.50
exportMethod · 0.50
newMethod · 0.50

Calls 2

root_eventsFunction · 0.85
renderFunction · 0.70

Tested by

no test coverage detected