Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 623 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 623 Bytes

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