lspf 0.2.1

A Rust framework for building extensible LSP language servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! ADR 0020: the protocol engine reaches an executor only through the internal
//! `Runtime` trait, so the native and WASM send models stay a compile-target
//! choice rather than a call site scattered through the core.

/// The engine owns every task the connection spawns, so it is the one module
/// that could reach an executor directly.
#[test]
fn the_protocol_engine_routes_task_creation_through_runtime() {
    let source = include_str!("../src/engine.rs");

    assert!(!source.contains("tokio::spawn"));
    assert!(!source.contains("tokio::task::spawn_local"));
    assert!(!source.contains("wasm_bindgen_futures::spawn_local"));
}