Skip to content

Compile Error Loading Crate Documents #7

@lnbc1QWFyb24

Description

@lnbc1QWFyb24

I am not sure if this is unique to my system or not, and it does seem to be specific to the polars crate as I have successfully started a server for other crates, but wanted to see if anyone else is running in to this issue and has found a way to resolve.

Using version v1.3.1 downloaded from the releases. I have also tried compiling from the main branch.

I have tried:

  • Cleaning my cargo cache
  • Restarting computer
  • Updating rust toolchain
  • Run on nightly and stable toolchain

Compile error:

rustdocs_mcp_server [email protected]
Target Spec: [email protected], Parsed Name: polars, Version Req: 0.48.1, Features: None
Cache file path: "/Users/aaron/.local/share/rustdocs-mcp-server/polars/0.48.1/no_features/embeddings.bin"
Cache file not found. Will generate.
Proceeding with documentation loading and embedding generation.
Loading documents for crate: polars (Version Req: 0.48.1, Features: None)
error[E0514]: found crate `num_traits` compiled by an incompatible version of rustc
 --> /Users/aaron/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/argminmax-0.6.3/src/scalar/generic.rs:2:5
  |
2 | use num_traits::float::FloatCore;
  |     ^^^^^^^^^^
  |
  = note: the following crate versions were found:
          crate `num_traits` compiled by <unknown rustc version>: /private/var/folders/_y/m4ym79v150n3xnglq93w7jy00000gn/T/.tmp31QOJa/debug/deps/libnum_traits-05bd95be2cae24bb.rmeta
  = help: please recompile that crate using this compiler (rustc 1.89.0-nightly (bf64d66bd 2025-05-21)) (consider running `cargo clean` first)

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