So I am under the suspicion that one, some or all of
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
is breaking WASM if you optimize with either of these settings: --snip-rust-fmt-code
--snip-rust-panicking-code
I'm pretty sure fmt and panicking code should be safe to strip out, if you don't want it in a production release.
So the problem is, how can I build a minimal WASM example that uses these structs (so they don't get optimized away), and then test it, so that I can identify the culprit and later report it?