8000 Compatibility Issue: `proc-macro server's api version (5) is newer than rust-analyzer's (2)` · Issue #211 · qryxip/cargo-equip · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Compatibility Issue: proc-macro server's api version (5) is newer than rust-analyzer's (2) #211
Open
@EarthMessenger

Description

@EarthMessenger

I encountered an error when using cargo-equip with my project. Below are the details:

  1. My code structure:

    • src/main.rs

      use proconio::{input};
      
      fn main() {
          input! {
              a: u32,
          }
          println!("{}", a);
      }
    • Cargo.toml

      [package]
      name = "library_checker"
      version = "0.1.0"
      edition = "2021"
      
      [dependencies]
      proconio = { version = "0.4.3", features = ["derive"] }
  2. After running cargo equip, I received the following output and error message:

    warning: Currently cargo-equip only supports Feature Resolver v1, and may search more crates than the real Cargo does. Please watch https://github.com/qryxip/cargo-equip/issues/94
    ...
    error: could not bundle the code
    
    - `registry+https://github.com/rust-lang/crates.io-index#proconio-derive@0.2.1` as `crate::__cargo_equip::crates::__proconio_derive_0_2_1`
    - `registry+https://github.com/rust-lang/crates.io-index#proconio@0.4.5` as `crate::__cargo_equip::crates::proconio`
    
    Caused by:
      proc-macro server's api version (5) is newer than rust-analyzer's (2)
    

I expected cargo equip to bundle my project code successfully, but it fails due to a version incompatibility between proc-macro's API and rust-analyzer.

  • Cargo version: cargo 1.84.0-nightly (031049782 2024-11-01)
  • cargo-equip version: latest
  • Operating system: Arch Linux

Is there a recommended workaround or an update planned to resolve this compatibility issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0