Skip to content

Wrapper around pdbtbx rust lib using wasm interface type

License

Notifications You must be signed in to change notification settings

i-VRESSE/pdbtbx-wit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Wrapper around pdbtbx rust lib using wasm interface type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published