Hi! I'm exploring Gleam as a possible solution to a project I'm working on. Part of what makes Gleam such an excellent fit is being able to target Erlang for my backend and JavaScript for my frontend.
However, I want to support post quantum encrypt. I've found Erlang packages and JavaScript packages that support the algorithms, but I'm concerned about the complexity that maintain separate packages for different backends would add to the code base.
It occurred to me that I could take a Rust or C package and compile it for both backends, as WASM for js or a NIF for erlang.
I don't see any docs or blogs about this so I'm wondering if this is not a discussed area because it is a dumb idea for some glaringly obvious reason.