/pdbtbx-wit

Wrapper around pdbtbx rust lib using wasm interface type

Primary LanguageRustApache License 2.0Apache-2.0

pdbtbx-wit

Wrapper around pdbtbx rust library for reading (crystallographic) Protein Data Bank (PDB) and mmCIF files in JavaScript.

Using WebAssembly Component and Wasm Interface Type

Usage

```shell
# Install dependencies
cargo install cargo-component
npm install

# Regen src/bindings.rs + build wasm
cargo component build --release

# Display wit from wasm
npx jco wit target/wasm32-wasi/release/pdbtbx_wit.wasm

# Create js wrapper around wasm
npm run build

# Exercize
node test.js