Drop-ins and libraries

Drop-ins have the same name and API as a crates.io crate and stand in for it in JavaScript builds (Limonite patches them in); the libraries are Limonite's own. Made one, or know of one?

Suggest one

wasm-bindgen

drop-in

Stands in for wasm-bindgen 0.2

JsValue is the JS value itself, with no handle table: JsCast, Closure, #[wasm_bindgen] exports and extern blocks.

by lazuli-rsSource

js-sys

drop-in

Stands in for js-sys 0.3

JS built-ins as JS values, with the original's names.

by lazuli-rsSource

wasm-bindgen-futures

drop-in

Stands in for wasm-bindgen-futures 0.4

Rust futures on the JS event loop (spawn_local), and JS Promises as futures (JsFuture).

by lazuli-rsSource

wasm-bindgen-test

drop-in

Stands in for wasm-bindgen-test 0.3

#[wasm_bindgen_test] tests run as ordinary tests, with limonite test.

by lazuli-rsSource

getrandom

drop-in

Stands in for getrandom 0.2.17

Random bytes from the browser's crypto.getRandomValues, through Limonite's runtime.

by lazuli-rsSource

os_pipe, rusty-fork, wait-timeout

drop-in

Stands in for os_pipe 1.2.2, rusty-fork 0.3.1, wait-timeout 0.2.1

Build and report Unsupported where there are no processes, so the crates whose tests use them compile for JS.

by lazuli-rsSource

limonite-port

library

Portable types: the real JS built-ins (Map, fetch, promises, timers) on the web, Rust implementations natively.

by lazuli-rsSource

limonite-wasm

library

#[wasm]: a function of an ordinary crate that runs as WebAssembly on the web, and as itself natively.

by lazuli-rsSource

Limonite: MIT OR Apache-2.0. Part of lazuli-rs.

This site is a Lazuli app, compiled to JavaScript by Limonite.