-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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 rootI'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 !