Skip to content

bug: compilation error in multi workspace setup #103

@ssddOnTop

Description

@ssddOnTop

Describe the bug
Compilation errors in multi workspace setup.

To Reproduce
Steps to reproduce the behavior:

  1. Define rmcp in internal workspace, or define it in root Cargo.toml and try to use it in internal workspace (via rmcp.workspace = true) it throws compilation errors

Logs
Compilation error:

error[E0433]: failed to resolve: could not find `SchemaGenerator` in `schemars`
  --> /home/ssdd/RustroverProjects/rust-sdk/crates/rmcp/src/handler/server/tool.rs:17:28
   |
17 |     let schema = schemars::SchemaGenerator::default().into_root_schema_for::<T>();
   |                            ^^^^^^^^^^^^^^^ could not find `SchemaGenerator` in `schemars`

Additional context
rustc version: 1.86.0 (05f9846f8 2025-03-31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugBug fixes and error corrections

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions