(
transport: &mut UnixStreamTransport,
response: &crate::mcp::JsonRpcResponse,
)
| 2090 | |
| 2091 | #[cfg(unix)] |
| 2092 | async fn write_json_rpc_response( |
| 2093 | transport: &mut UnixStreamTransport, |
| 2094 | response: &crate::mcp::JsonRpcResponse, |
| 2095 | ) -> Result<()> { |
| 2096 | transport |
| 2097 | .write_line(&serde_json::to_string(response)?) |
| 2098 | .await?; |
| 2099 | transport.write_line("\n").await?; |
| 2100 | transport.flush().await?; |
| 2101 | Ok(()) |
| 2102 | } |
| 2103 | |
| 2104 | #[cfg(unix)] |
| 2105 | async fn serve_projectless_client( |
no test coverage detected