Closed vamanea closed 1 year ago
Why do you need to install cargo-xbuild
using the pinned nightly? Installing it through cargo +stable install cargo-xbuild
should work in your case.
Right, that didn't occur to me, no idea why. Sorry for the noise.
My project uses rust nightly 2021-03-23 and since some time I can't build cargo-xbuild anymore, on account of this error:
With older serde_json(1.0.59) it builds fine.
The linked issue was fixed in 2021 Apr 14 nightlies, so updating the toolchain to that fixed my issue. The other solution is to request a specific version of serde_json in Cargo.toml.
I'm not sure which is the better fix, but I think at least updating the README to indicate the latest supported toolchain is needed.