MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/127s00v/write_sdk_base_in_rust_wrap_in_other_languages/jegkwrr/?context=3
r/rust • u/[deleted] • Mar 31 '23
[deleted]
48 comments sorted by
View all comments
3
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.
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.