1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-04-01 01:41:08 +00:00

Reword intro in README

Not really an exclusive polyfill but moreso nice features too!
This commit is contained in:
Alex Crichton 2018-02-02 08:14:05 -08:00
parent 83a2b314b2
commit 9ac713d4eb

@ -1,19 +1,19 @@
# wasm-bindgen # wasm-bindgen
A CLI and Rust dependency for acting as a polyfill for [Wasm host A project for facilitating high-level interactions between wasm modules and JS.
bindings][host], allowing you to interoperate with JS from wasm with types like
strings, JS objects, etc.
[host]: https://github.com/WebAssembly/host-bindings [host]: https://github.com/WebAssembly/host-bindings
[![Build Status](https://travis-ci.org/alexcrichton/wasm-bindgen.svg?branch=master)](https://travis-ci.org/alexcrichton/wasm-bindgen) [![Build Status](https://travis-ci.org/alexcrichton/wasm-bindgen.svg?branch=master)](https://travis-ci.org/alexcrichton/wasm-bindgen)
[![Build status](https://ci.appveyor.com/api/projects/status/559c0lj5oh271u4c?svg=true)](https://ci.appveyor.com/project/alexcrichton/wasm-bindgen) [![Build status](https://ci.appveyor.com/api/projects/status/559c0lj5oh271u4c?svg=true)](https://ci.appveyor.com/project/alexcrichton/wasm-bindgen)
This project is a "temporary" polyfill for the [host bindings proposal][host] This project is sort of half polyfill for features like the [host bindings
which is intended to empower wasm modules to interact with host objects such as proposal][host] and half features for empowering high-level interactions between
strings, JS objects, etc. This project enables defining JS classes in wasm, JS and wasm-compiled code (currently mostly from Rust). More specifically this
taking strings from JS in wasm, and calling into JS with JS objects previously project allows JS/wasm to communicate with strings, JS objects, classes, etc, as
provided. opposed to purely integers and floats. Using `wasm-bindgen` for example you can
define a JS class in Rust or take a string from JS or return one. The
functionality is growing as well!
Currently this tool is Rust-focused but the underlying foundation is Currently this tool is Rust-focused but the underlying foundation is
language-independent, and it's hoping that over time as this tool stabilizes language-independent, and it's hoping that over time as this tool stabilizes