Post #2085714
2023-05-12 15:39 UTC
@sunfish How do we get Rust to support AnyRef/ExternRef? Will that be necessary to get Rust to support Component Model or whatever it’s called now (exchanging richer types including strings with the host or other modules)? How do we get Rust there?
Replies (1)
-
@sunfish@hachyderm.io 2023-05-12 15:48
@bryan There are people thinking about externref for Rust, but I don't know of any concrete plans right now. Fortunately, that won't be necessary for Rust to interact with the outside world. The component model encapsulates how strings and handles are implemented, so Rust can use its own string types and can use handles like it uses file descriptors on Unix, an integer index wrapped in a higher-level type.