Skip to content

Non-Idiomatic Naming #7

@virtualritz

Description

@virtualritz

Naming in this crate does not conform to official Rust API guidelines on naming.

Particularly the MCP prefix of some types should read Mcp (e.g. McpServer) and getters should not start with get_.

Vice versa, I think JsonrpcErrorError should be JsonRpcError etc. but that may be because this stuff is generated? Maybe a type alias in the resp. crate would be a good idea here.

type JsonRpcError = JsonrpcErrorError;

Would you accept a PR that fixes those?

I can add aliases for the old types/method names w. deprecation warnings too, if you want. Given that this crate does not have that many users (yet) when looking at stats on crates.io it may not be be necessary and a changelog note may be enough. 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions