Closed finnbear closed 1 year ago
Is this a duplicate of #114?
Is this a duplicate of #114?
Almost certainly yes!
I have submitted a pull request awaiting code review from @WorldSEnder.
Until this is mitigated from stylist, there is a comment in the compiler regression issue about how to mitigate the impact by switching the linker to lld until Rust compiler is fixed.
solution with lld doesn't work for me but adding this in Cargo.toml with rust 1.70 helps me to solve this issue
[profile.dev.package.wasm-bindgen] debug-assertions = false
Same error here, I can't compile stylist. Im on rust 1.70
After going back to rust 1.69, I can confirm that it is a version issue (it worked with 1.69)
Stylist v0.12.1 has been released, which should also mitigate this issue from within stylist.
Affected users can run cargo update
in their projects and it should pick up the new version automatically.
This current workaround has a couple requirements:
In addition, since Rust 1.72 has fixed this regression and this workaround is no longer needed, I do plan to remove the workaround.
The current plan is once 1.72 has been released for 6 months, we bump the MSRV requirement to 1.72 to avoid this regression and remove the workaround.
Thanks for the crate! I noticed a regression on recent Rust nightly's that causes a linker error when using stylist.
Rust regression issue: https://github.com/rust-lang/rust/issues/111888
JsValue
inclusion: https://github.com/futursolo/stylist-rs/blob/fbd788f0a9a63ccadf6a25e028829a25224140eb/packages/stylist-core/src/error.rs#L19 (this type is later imported bystylist-macros
but, as far as I know, this variant won't be constructed there)I'll work on a PR to see if
JsValue
can be removed forproc_macro
purposes.