mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-04-25 00:06:21 +02:00
cargo install webclaw-mcp on a fresh machine prints warning: field `tool_router` is never read --> crates/webclaw-mcp/src/server.rs:22:5 The field is essential — dropping it unregisters every MCP tool. The warning shows up because rmcp 1.3.x changed how the #[tool_handler] macro reads the field: instead of referencing it by name in the generated impl, it goes through a derived trait method. rustc's dead-code lint sees only the named usage and fires. The field stays. Annotated with #[allow(dead_code)] and a comment explaining the situation so the next person looking at this doesn't remove the field thinking it's actually unused. No behaviour change. Verified clean compile under rmcp 1.3.0 in our lock; the warning will disappear for anyone running cargo install against this commit. |
||
|---|---|---|
| .. | ||
| webclaw-cli | ||
| webclaw-core | ||
| webclaw-fetch | ||
| webclaw-llm | ||
| webclaw-mcp | ||
| webclaw-pdf | ||
| webclaw-server | ||