proteinpaint-rust
/
2.8.1-0
proteinpaint-rust 2.8.1-0
Install from the command line:
Learn more about npm packages
$ npm install @stjude/proteinpaint-rust@2.8.1-0
Install via package.json:
"@stjude/proteinpaint-rust": "2.8.1-0"
About this version
This directory holds the source code for rust-compiled utilities.
All source code files should be directly under the src/
directory. For a source
code file to be compiled, create a [[bin]]
entry for it in the Cargo.toml file:
[[bin]]
name="tool0"
path="src/tool0.rs"
[[bin]]
name="othertool1"
path="src/othertool1.rs"
Note that the default package.autobins has been disabled, so that we avoid using
the src/bin subdirectory to hold uncompiled source code files. The convention in
the Proteinpaint project is to put bundled or compiled code under a bin/
folder,
which goes against rust cargo's assumptions of having source code under src/bin
.
npm run build # cargo build --release
The compiled dependencies and target binaries will be generated under ./target/release
.
// assuming a js file from server/src
const run_rust = require('@stjude/proteinpaint-rust').run_rust
// or
// import * as utils from './utils'
// 'indel' may be replaced by any binary name as specified in Cargo.toml
const out = await run_rust('indel', input_data)
From the proteinpaint/server
directory,
npx test
Details
- proteinpaint-rust
- stjude
- over 1 year ago
- GPL-3.0-only OR SEE LICENSE IN LICENSE/License_Custom.txt
- 1 dependencies
Assets
- proteinpaint-rust-2.8.1-0.tgz
Download activity
- Total downloads 11
- Last 30 days 0
- Last week 0
- Today 0