Hi! I like the design of this library, was going to look into using in a project but noticed the .free() method on the EmailAddress class. Not too familiar with the latest on wasm stuff but appears as though I might need to manually do memory management here and explicitly free an EmailAddress after I'm done with it?
Hi @robertf224! Thank you for your question. I am currently using wasm-pack to create the wasm modules. That currently does not support the --weak-refs flag; refer to this issue.
In the absence of that, it is better to call the .free() method to deallocate the memory.
Hi! I like the design of this library, was going to look into using in a project but noticed the
.free()
method on theEmailAddress
class. Not too familiar with the latest on wasm stuff but appears as though I might need to manually do memory management here and explicitly free anEmailAddress
after I'm done with it?