home.social

#bindgen — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bindgen, aggregated by home.social.

fetched live
  1. Damn... Rust devs going crazy with these libraries.

    ⚒️ **sledgehammer_bindgen** 🦀

    💥 Breaking the performance barrier of WASM/JS communication.

    ⚡ Faster Rust batched bindings for JS code.

    ⭐ GitHub: github.com/ealmloff/sledgehamm

  2. Damn... Rust devs going crazy with these libraries.

    ⚒️ **sledgehammer_bindgen** 🦀

    💥 Breaking the performance barrier of WASM/JS communication.

    ⚡ Faster Rust batched bindings for JS code.

    ⭐ GitHub: github.com/ealmloff/sledgehamm

    #rustlang #webassembly #wasm #javascript #performance #bindings #frontend #bindgen

  3. question to all the experts out there: Within a bigger C code base I like to replace some C code with Rust. I have a existing C header file describing the API and data types which I really don't like to touch. And it seems like this use-case is not really covered by bindgen or cbindgen.

    helps to generate Rust types, etc. from header files but assumes that your goal is to call from Rust into existing C code. All API functions are inside `extern` blocks.

  4. question to all the #rustlang #FFI experts out there: Within a bigger C code base I like to replace some C code with Rust. I have a existing C header file describing the API and data types which I really don't like to touch. And it seems like this use-case is not really covered by bindgen or cbindgen.

    #bindgen helps to generate Rust types, etc. from header files but assumes that your goal is to call from Rust into existing C code. All API functions are inside `extern` blocks.

  5. We wrapped up our work on rust-bindgen and handed it over to its original maintainer @emilio. Thanks to Prossimo and Emilio for the trust they placed in us.

    You can read about our major work and milestones achieved in Prossimo's blog post memorysafety.org/blog/automati

    #ffi #bindgen #rust #rustlang

  6. We wrapped up our work on rust-bindgen and handed it over to its original maintainer @emilio. Thanks to Prossimo and Emilio for the trust they placed in us.

    You can read about our major work and milestones achieved in Prossimo's blog post memorysafety.org/blog/automati

    #ffi #bindgen #rust #rustlang

  7. There is also a blog post by Lars Bergstrom: security.googleblog.com/2024/0 There Lars mentions some of the cool #Rust crates that we've contributed to: #cxx, #autocxx, #bindgen, #cbindgen, #diplomat, and #crubit. Some of these projects are from #Google, others are open source projects that we use and contribute to.

  8. There is also a blog post by Lars Bergstrom: security.googleblog.com/2024/0 There Lars mentions some of the cool #Rust crates that we've contributed to: #cxx, #autocxx, #bindgen, #cbindgen, #diplomat, and #crubit. Some of these projects are from #Google, others are open source projects that we use and contribute to.

  9. Fixed a critical bug in **rust-bindgen**!

    🐛 PR: github.com/rust-lang/rust-bind

    🦀 **rust-bindgen**: Automatically generates Rust FFI bindings to C (and some C++) libraries.

    ⭐ GitHub: github.com/rust-lang/rust-bind

  10. Fixed a critical bug in **rust-bindgen**!

    🐛 PR: github.com/rust-lang/rust-bind

    🦀 **rust-bindgen**: Automatically generates Rust FFI bindings to C (and some C++) libraries.

    ⭐ GitHub: github.com/rust-lang/rust-bind

    #rust #bindgen #c #cpp #ffi #bindings #opensource #contribution

  11. Interesting. It seems that Rust's bindgen (the magic that turns C libraries into Rust libraries) does translate constant #define 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

    #RustLang #bindgen

  12. 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.

  13. 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.

  14. `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!