semvec/pypi-packages huggingface dataset:
timelock-wasm-wrapper 0.0.2
Wasm bidings for the timelock encryption crate
License: Apache-2.0

# WASM Bindings for Timelock

This crate provides wasm compatibility for the timelock crate. It provides compatibility for both JavaScript and Python (3+).

## Build

### For JavaScript Compatibility
To compile to wasm, first build the project and them run wasm-pack

``` shell
cargo build
wasm-pack build --target web --out-dir pkg
```

### For Python Compatibility

Python compatible wasm output is generated with [PyO3](https://pyo3.rs/v0.23.2/).

First create a virtual env, then run:

``` sh
pip install maturin
# specify your python version
export PYO3_CROSS_PYTHON_VERSION="3.10"
maturin develop --features "python"
```

#### Publish

``` sh
# Create a release build
maturin build --features "python" --release
# publish to PyPi with maturing
maturin publish --features "python"
```