register_context_bridge

Function register_context_bridge 

Source
fn register_context_bridge(
    lua: &Lua,
    config: &Config,
    tool_config: &Table,
) -> LuaResult<()>
Expand description

Register the context table in the Lua VM.

Provides context.search, context.get, context.sources, and context.config. The first three call back into Rust’s async core via tokio::runtime::Handle::block_on.