Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kugushev opened this issue Jul 9, 2024 · 2 comments · Fixed by #406
Closed

Comments

@kugushev
Copy link

kugushev commented Jul 9, 2024

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
Copy link
Owner

boozook commented Jul 9, 2024

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

wax issue: olson-sean-k/wax#60
rustc issue: rust-lang/rust#127346

@boozook
Copy link
Owner

boozook commented Jul 16, 2024

Fixed in rust toolchain nightly-2024-07-15

@boozook boozook linked a pull request Jul 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants