rust-sdk/crates/rmcp-macros/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rob Jellinghaus ddef4ce529
fix(clippy): add doc comment for generated tool attr fn (#439)
This change makes the `tool` macro's output safe for the `missing_docs` lint, by
emitting a doc comment for the generated `[tool]_tool_attr` function. This doc
comment is emitted regardless of whether the tool function is public, for simplicity.

We are building an MCP server using `rmcp` and discovered that the current crate
was not compatible with the `#![deny(missing_docs)]` lint which we use everywhere.

Tested by modifying the `test_tool_macros.rs` test to use `#![deny(missing_docs)]`
and adding doc comments to all pub fns and structs in that file.

None.

Fixes #438.

Co-authored-by: RobJellinghaus <rjellinghaus@live.com>
2025-09-17 15:02:56 +08:00
..
common.rs feat: Add prompt support (#351) 2025-08-21 11:22:19 +08:00
lib.rs fix(typo): correct typo in error message for transport cancellation and field. (#404) 2025-09-01 03:14:14 +08:00
prompt.rs feat(SEP-973): add support for icons and websiteUrl across relevant types (#432) 2025-09-11 11:49:03 -04:00
prompt_handler.rs feat: Add prompt support (#351) 2025-08-21 11:22:19 +08:00
prompt_router.rs feat: Add prompt support (#351) 2025-08-21 11:22:19 +08:00
tool.rs fix(clippy): add doc comment for generated tool attr fn (#439) 2025-09-17 15:02:56 +08:00
tool_handler.rs feat: unified error type (#308) 2025-07-09 11:23:39 +08:00
tool_router.rs refactor: refactor tool macros and router implementation (#261) 2025-06-24 04:01:22 +08:00