uniffi-runtime-javascript

Crates.iouniffi-runtime-javascript
lib.rsuniffi-runtime-javascript
version0.29.3-1
created_at2025-04-29 13:35:55.442205+00
updated_at2025-07-30 15:31:44.551694+00
descriptionJavascript runtime for UniFFI-generated bindings
homepage
repositoryhttps://github.com/jhugman/uniffi-bindgen-react-native
max_upload_size
id1653535
size15,390
(jhugman)

documentation

README

uniffi-runtime-javascript

The command line tool uniffi-bindgen-react-native can generate Javascript bindings crate for your Rust crate, from [uniffi::export] proc-macros in your code.

These bindings crates depend on this crate. Currently this is for WASM runtimes only.

This crate is not intended to be used directly by hand-written code.

If you find this crate from a Cargo.toml, it is almost certain that the crate will have been generated.

For more information visit: https://jhugman.github.io/uniffi-bindgen-react-native

What is uniffi?

uniffi is a multi-language bindings generator for Rust, started at, and maintained by Mozilla.

For more information visit: https://mozilla.github.io/uniffi-rs

Most uniffi generated bindings go through a C ABI, called through different languages C FFI facilities. This crate is the beginnings of using Rust to call in to the C ABI.

Features

The crate is split into features, one per Javascript runtime:

  • wasm32: uses wasm-bindgen.

Future features may be:

  • napi: which uses napi-rs to provide node bindings.

Generating uniffi based bindings for other Javascript Runtimes without this crate

Commit count: 247

cargo fmt