@sjcrh/proteinpaint-rust 2.182.1 → 2.182.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -26,6 +26,7 @@ const binaryDir = path.join(__dirname, '/target/release/')
|
|
|
26
26
|
if (!fs.existsSync(binaryDir)) throw `missing rust binary directory='${binaryDir}'`
|
|
27
27
|
if (!fs.readdirSync(binaryDir).length) throw `empty rust binary directory='${binaryDir}'`
|
|
28
28
|
|
|
29
|
+
// use this for non-streamed input/output
|
|
29
30
|
export function run_rust(binfile, input_data, args = [], { signal } = {}) {
|
|
30
31
|
return new Promise((resolve, reject) => {
|
|
31
32
|
const binpath = path.join(__dirname, '/target/release/', binfile)
|
package/package.json
CHANGED