3 ms·
Rust is both allocating and deallocating. With the case of using Rust like a library we don't know the lifetime(since it's owned by the calling language) so rat
by vvanders 11y ago
Rust is both allocating and deallocating. With the case of using Rust like a library we don't know the lifetime(since it's owned by the calling language) so rather than stuffing it in a 'static context and use some sort if ID for lookup in the API I'd rather just return the raw struct.
- steveklabnik 11y agoYeah, in that case, just waiting for the next release is best. You can do some `transmute` shenanigans in the meantime, but since it's coming so soon, might as well just wait.