open-index/open-npm huggingface dataset:
npm package: @fxpineau/healpix
Description: CDS implementation of the HEALPix tesselation in Rust compiled to WASM.  See [github repo](https://github.com/cds-astro/cds-healpix-rust), more particullar [this directory](https://github.com/cds-astro/cds-healpix-rust/tree/master/libwasmbindgen).
Latest version: 0.1.3

CDS implementation of the HEALPix tesselation in Rust compiled to WASM. 
See [github repo](https://github.com/cds-astro/cds-healpix-rust),
more particullar [this directory](https://github.com/cds-astro/cds-healpix-rust/tree/master/libwasmbindgen).

## Javascript example 




## Build the library locally from Rust source codes

First install Rust if not already done:
```bash
curl https://sh.rustup.rs -sSf | sh
```
(More details [here](https://www.rust-lang.org/tools/install) if you are not using Linux.)


To build the WASM and Javascript files, you need to install [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) in addition to the `nightly` version of Rust:

```bash
rustup target add wasm32-unknown-unknown --toolchain nightly
cargo +nightly install wasm-bindgen-cli
```

To test the demo page, you have to load the WASM/Javascript files from an HTTP server.
To start a local HTTP server, you can use (requires python):

```bash
# For python 2
python -m SimpleHTTPServer
# For python 3
python -m http.server
```

Then load in your favourite browser the URL [http://localhost:8000/test.html](http://localhost:8000/test.html) and/or [http://localhost:8000/demo.html](http://localhost:8000/demo.html)