Skip to main content

Wasm bidings for the timelock encryption crate

Project description

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

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

For Python Compatibility

Python compatible wasm output is generated with PyO3.

First create a virtual env, then run:

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

Publish

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timelock_wasm_wrapper-0.0.2-cp310-cp310-manylinux_2_34_x86_64.whl (463.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file timelock_wasm_wrapper-0.0.2-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for timelock_wasm_wrapper-0.0.2-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b181dd9da4df92c3476ba17b3ece1d19d3495e6be4c2c1ce944e03f4a245aec3
MD5 4454c0e037c333146048c2ce0411c967
BLAKE2b-256 76abbf0396861271f1e1b956e42114915461ef4b390f71336c9730eef5f8a09c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page