Hi, for WIT like below:
resource Task {
execute: function()
}
Is it okay that wit-bindgen-gen-rust-wasm generates broken code? (rustc screams at it with errors)
It is mostly screaming about trait references not having dyn
keyword, etc.
Let me send cargo/rustc logs
https://www.toptal.com/developers/hastebin/bemanikogi.log
Running it in export mode
Does it work if you use the 2018 edition of rust instead of 2021? Trait object without dyn
had been deprecated in the 2018 edition and removed in the 2021 edition.
This was my misunderstanding, sorry - I thought the declarations can be freestanding
handicraftsman has marked this topic as resolved.
Last updated: Nov 22 2024 at 16:03 UTC