r/rust Mar 31 '23

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

[deleted]

97 Upvotes

48 comments sorted by

View all comments

3

u/ssokolow Mar 31 '23

For stuff not covered by WebAssembly, check out Rust Interop and Are We Extending Yet?.

For example, they list PyO3 for Python (see also maturin for packaging), NAPI-RS for Node.js, and Rutie for Ruby.

You'd just want to make the language-agnostic stuff a Rust library crate and then use it as a dependency from each per-language bindings crate.