· @multimeric
271 followers · 210 posts · Server genomic.social

Interesting. It seems that Rust's bindgen (the magic that turns C libraries into Rust libraries) does translate constant macros, but not "function-like" macros that take arguments. So you will have a bad time trying to port a C library that uses a lot of those.

More info: github.com/rust-lang/rust-bind

#define #rustlang #bindgen

Last updated 2 years ago

Ivan, the Language Mangler 🦀 · @hywan
1139 followers · 1025 posts · Server fosstodon.org

Use Rust async functions and methods in Swift, Kotlin and Python, github.com/mozilla/uniffi-rs/p.

It's ready! Large PR, sorry for the reviewers.

#rustlang #kotlin #swiftlang #future #async #uniffi #bindgen

Last updated 2 years ago

Chris Gioran · @chrisg
103 followers · 434 posts · Server fosstodon.org

Long shot, i know, but does anyone have experience with in ? I am getting a bit stuck.

#bindgen #rust

Last updated 2 years ago

Ivan Enderlin 🌱 :ferris: · @hywan
820 followers · 751 posts · Server fosstodon.org

Clarify[ing] the relationship [between] `wasm-bindgen` and `stdweb`, github.com/rustwasm/team/issue.

An excellent thread where authors of respective projects explain their visions. It opens on a potential collaboration.

#bindgen #rustlang #webassembly #wasm #web #javascript

Last updated 6 years ago

Ivan Enderlin 🌱 :ferris: · @hywan
820 followers · 751 posts · Server fosstodon.org

`wasm-bindgen` 0.2.16 has been released, github.com/rustwasm/wasm-bindg.

It includes a new crate: `wasm-bindgen-futures` for seamlessly converting between JavaScript Promises and Rust Futures!

#rustlang #wasm #webassembly #future #javascript #promise #bindgen

Last updated 6 years ago