Write SDK “base” in Rust, wrap in other languages?

89 points saltyrefrigerator

I just got a new job, and I’m tasked with building an SDK in 5 languages (think Stripe client libraries).

Is there a way to implement the SDK once in Rust to them wrap it in other languages (e.g., JavaScript, Ruby, Python) so that our customers using those languages can access our API?

I know Node has NAPI & WASM, but this may not work for others. I’d love some guidance. Thanks!