cargo-skyline icon indicating copy to clipboard operation
cargo-skyline copied to clipboard

error: unknown `--json` option `future-incompat`

Open ghost opened this issue 2 years ago • 1 comments

I was trying to build my plugin and i got these errors, how can i fix it?

turbo rust

ghost avatar Jun 05 '22 09:06 ghost

For anyone stumbling upon this: this issue seems to happen on many Rust installations, and is possibly caused by incompatibilities between recent official Cargo versions and the custom Rust toolchain that Skyline uses.

The fix to this issue is to use the 3.0.0 version of cargo-skyline. At this time of writing, it's only available on the yea-again branch of this repository.

To opt into this version of cargo-skyline, run the following command:

cargo install --git https://github.com/jam1garner/cargo-skyline.git --branch yea-again

Then, update the toolchain. This process can take a while on this version:

cargo skyline update-std

For safety, it may also be worth it to update the libraries:

cargo skyline update

Nnubes256 avatar Jun 11 '22 19:06 Nnubes256