mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Reword intro in README
Not really an exclusive polyfill but moreso nice features too!
This commit is contained in:
parent
83a2b314b2
commit
9ac713d4eb
16
README.md
16
README.md
@ -1,19 +1,19 @@
|
||||
# wasm-bindgen
|
||||
|
||||
A CLI and Rust dependency for acting as a polyfill for [Wasm host
|
||||
bindings][host], allowing you to interoperate with JS from wasm with types like
|
||||
strings, JS objects, etc.
|
||||
A project for facilitating high-level interactions between wasm modules and JS.
|
||||
|
||||
[host]: https://github.com/WebAssembly/host-bindings
|
||||
|
||||
[](https://travis-ci.org/alexcrichton/wasm-bindgen)
|
||||
[](https://ci.appveyor.com/project/alexcrichton/wasm-bindgen)
|
||||
|
||||
This project is a "temporary" polyfill for the [host bindings proposal][host]
|
||||
which is intended to empower wasm modules to interact with host objects such as
|
||||
strings, JS objects, etc. This project enables defining JS classes in wasm,
|
||||
taking strings from JS in wasm, and calling into JS with JS objects previously
|
||||
provided.
|
||||
This project is sort of half polyfill for features like the [host bindings
|
||||
proposal][host] and half features for empowering high-level interactions between
|
||||
JS and wasm-compiled code (currently mostly from Rust). More specifically this
|
||||
project allows JS/wasm to communicate with strings, JS objects, classes, etc, as
|
||||
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
|
||||
language-independent, and it's hoping that over time as this tool stabilizes
|
||||
|
Loading…
x
Reference in New Issue
Block a user