Skip to content

Dependency hell serde//swc_common #8

@AxelLavielle

Description

@AxelLavielle

Hi, I've been trying to compile the project for one hour but couldn't fix the dependency hell between serde and swc_common.
The main error is:

error[E0432]: unresolved import `serde::__private`
 --> /home/elise/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/swc_common-9.2.0/src/private/mod.rs:3:9
  |
3 | pub use serde::__private as serde;
  |         ^^^^^^^---------^^^^^^^^^
  |         |      |
  |         |      help: a similar name exists in the module: `private`
  |         no `__private` in the root

I've tried to default the version of Rust and Cargo to 1.91, 90, 88, 85 but everytime there is either a dependency that requires a more recent version, either the same error.
I have also tried different version of serde and swc, getting both of them at stable versions and from their git branches directly, but I can't find a stable compatibility between the two and a version up to date enough for the project to compile.

I'm using an archlinux based OS (cachyOS) to its latest available stable version (250828).
I've tried deleting cargo and rust from my system and install them back in case it was a precedent project that would inject a bad dependency, and of course, each test was made by deleting the Cargo.lock and target folder.
The problem occur both with
cargo build --release from the source code main branch
and
cargo install visor_cli

I'm looking forward to provide more info if required !

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