https://github.com/hugojosefson/cursive_wasm
Make Rust TUI library cursive available to consumers of WebAssembly (WASM).
https://github.com/hugojosefson/cursive_wasm
cursive deno rust terminal tui wasm webassembly
Last synced: 4 months ago
JSON representation
Make Rust TUI library cursive available to consumers of WebAssembly (WASM).
- Host: GitHub
- URL: https://github.com/hugojosefson/cursive_wasm
- Owner: hugojosefson
- License: mit
- Created: 2022-08-28T11:09:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-26T00:57:40.000Z (over 3 years ago)
- Last Synced: 2025-04-06T11:48:43.813Z (about 1 year ago)
- Topics: cursive, deno, rust, terminal, tui, wasm, webassembly
- Language: Rust
- Homepage:
- Size: 70.3 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_MIT
Awesome Lists containing this project
README
# cursive-wasm
An attempt to make the Rust TUI library
[cursive](https://github.com/gyscos/cursive) available to consumers of
WebAssembly (WASM).
There is no backend included, so you will need to implement your own, for the
WASM runtime you use. I plan to do that for Deno.
## Prerequisites
### Rust
Install the latest version from [rustup.rs](https://rustup.rs/).
I haven't checked if it works with older versions.
### Deno
Install the latest version from [deno.land](https://deno.land/).
## make
### build
Build the WASM module.
```bash
make
```
Find the WASM module in `pkg/`.
### run
Build and run the WASM module in Deno.
```bash
make run
```
## TODO
- [ ] When
[rustwasm/wasm-pack#1188](https://github.com/rustwasm/wasm-pack/pull/1188)
is merged, update `Makefile` to use it from global installation if
available.