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

hit recursion limit in macro but cargo-web didn't report it #136

Closed
kjeremy opened this issue Sep 7, 2018 · 1 comment
Closed

hit recursion limit in macro but cargo-web didn't report it #136

kjeremy opened this issue Sep 7, 2018 · 1 comment

Comments

@kjeremy
Copy link

kjeremy commented Sep 7, 2018

cargo web build outputs:

==== Triggering cargo build ====
warning: debug builds on the wasm32-unknown-unknown are currently totally broken
forcing a release build
Compiling yew-test v0.1.0 (file:///C:/projects/test/yew-test)
error: Could not compile yew-test.

cargo build outputs:

Compiling yew-test v0.1.0 (file:///C:/projects/test/yew-test)
error: recursion limit reached while expanding the macro html_impl
--> src\components\network_config.rs:84:9
|
84 | / html! {
85 | | <form class="uk-form-horizontal uk-margin-small",>
86 | | <div class="uk-margin",>
87 | | <label class="uk-form-label", for="ip-address",>{"IP Address"}
... |
110 | |
111 | | }
| |_________^
|
= help: consider adding a #![recursion_limit="128"] attribute to your crate
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

error: Could not compile yew-test.

@koute
Copy link
Owner

koute commented Sep 7, 2018

Thanks for the report!

Hmm... looks like I can't really do anything about this as it's an issue with cargo itself.

I've created a new issue here: rust-lang/cargo#5992

@koute koute closed this as completed Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants