boozook / playdate

Playdate Build Tools and API
https://mastodon.gamedev.place/@pd
MIT License
133 stars 8 forks source link

Unable to install cargo-playdate due to wax dependency compilation error on MacOs #397

Closed kugushev closed 1 month ago

kugushev commented 2 months ago

After executing cargo +nightly install cargo-playdate I get the following error:

error: reached the type-length limit while instantiating `terminated::<Stateful<Located<'_, str>, ParserState>, Vec<...>, ..., ..., ..., ...>`
   --> /Users/kaw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wax-0.6.0/src/token/parse.rs:496:13
    |
496 | /             sequence::terminated(
497 | |                 multi::many1(branch::alt((
498 | |                     annotate(error::context(
499 | |                         "literal",
...   |
523 | |                 terminator.clone(),
524 | |             )
    | |_____________^
    |
    = help: consider adding a `#![type_length_limit="19570820"]` attribute to your crate
    = note: the full type name has been written to '/var/folders/1y/6c1kj_bs0fs1yyrq9jrspw7m0000gn/T/cargo-installYtuFvV/release/deps/wax-75a6889293a1bfa6.long-type.txt'

   Compiling tracing-chrome v0.7.2
error: reached the type-length limit while instantiating `terminated::<Stateful<Located<'_, str>, ParserState>, Vec<...>, ..., ..., ..., ...>`
   --> /Users/kaw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wax-0.6.0/src/token/parse.rs:496:13
    |
496 | /             sequence::terminated(
497 | |                 multi::many1(branch::alt((
498 | |                     annotate(error::context(
499 | |                         "literal",
...   |
523 | |                 terminator.clone(),
524 | |             )
    | |_____________^
    |
    = help: consider adding a `#![type_length_limit="18603125"]` attribute to your crate
    = note: the full type name has been written to '/var/folders/1y/6c1kj_bs0fs1yyrq9jrspw7m0000gn/T/cargo-installYtuFvV/release/deps/wax-75a6889293a1bfa6.long-type.txt'

error: could not compile `wax` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-playdate v0.5.0
boozook commented 2 months ago

@kugushev, sorry for this. Plz try to build with rust toolchain nightly-2024-06-30 or earlier, as workaround.

wax issue: https://github.com/olson-sean-k/wax/issues/60 rustc issue: https://github.com/rust-lang/rust/issues/127346

boozook commented 1 month ago

Fixed in rust toolchain nightly-2024-07-15