You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more context, in a wasm game engine SDK I maintain (turbo), I'm pulling in a crate (solana-sdk). However, cc-rs is deeply buried in dependencies of dependencies of that crate. This wouldn't be a terrible problem since cc-rs (especially the parallel feature stuff) is far from any code path that runs in wasm and optimization can get rid of a unused code, however, the compile_error! macro prevents cc-rs prevents builds from ever completing in the first place.
So the only option in my case (where cc-rs is buried deep in the dependency tree and I'm targeting wasm) currently is to fork and patch. This gets brittle fairly quickly since other dependencies can have version conflicts and force me to create more branches with version bumps and other minor tweaks over time.
I'm hoping we can land this patch and carve out exceptions for wasm with compile_error! moving forward 🙏🏽
The text was updated successfully, but these errors were encountered:
PR: #1068
For more context, in a wasm game engine SDK I maintain (
turbo
), I'm pulling in a crate (solana-sdk
). However,cc-rs
is deeply buried in dependencies of dependencies of that crate. This wouldn't be a terrible problem sincecc-rs
(especially the parallel feature stuff) is far from any code path that runs in wasm and optimization can get rid of a unused code, however, thecompile_error!
macro preventscc-rs
prevents builds from ever completing in the first place.So the only option in my case (where
cc-rs
is buried deep in the dependency tree and I'm targeting wasm) currently is to fork and patch. This gets brittle fairly quickly since other dependencies can have version conflicts and force me to create more branches with version bumps and other minor tweaks over time.I'm hoping we can land this patch and carve out exceptions for wasm with
compile_error!
moving forward 🙏🏽The text was updated successfully, but these errors were encountered: