mempool/rust/gbt/package.json

33 lines
1.2 KiB
JSON
Raw Normal View History

2023-06-23 22:42:58 +02:00
{
"name": "gbt",
2024-01-24 19:47:08 +01:00
"version": "3.0.1",
"description": "An efficient re-implementation of the getBlockTemplate algorithm in Rust",
2023-06-24 20:21:58 +02:00
"main": "index.js",
"types": "index.d.ts",
2023-06-23 22:42:58 +02:00
"scripts": {
2023-06-24 20:21:58 +02:00
"artifacts": "napi artifacts",
2024-03-10 05:27:09 +01:00
"build": "npm install --no-save @napi-rs/cli@2.18.0 && npm run check-cargo-version && napi build --platform",
"build-debug": "npm run build",
"build-release": "npm run build -- --release --strip",
2024-03-10 05:27:09 +01:00
"check-cargo-version": "VER=$(cat rust-toolchain) ; if ! cargo version | grep \"cargo $VER\" >/dev/null ; then echo -e \"\\033[1;35m[[[[WARNING]]]]: cargo version mismatch with ./rust-toolchain version ($VER)!!!\\033[0m\" >&2; fi",
"clean": "rm -rf ./target/ ./node_modules/ *.node package-lock.json",
2024-04-03 11:13:14 +02:00
"to-backend": "FD=${FD:-../../backend/rust-gbt/} ; rm -rf $FD && mkdir $FD && cp index.js index.d.ts package.json *.node $FD",
2023-06-24 20:21:58 +02:00
"prepublishOnly": "napi prepublish -t npm",
2023-06-23 22:42:58 +02:00
"test": "cargo test"
},
"author": "mononaut",
2023-06-24 20:21:58 +02:00
"napi": {
"name": "gbt",
"triples": {
"defaults": false,
"additional": [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-freebsd"
]
}
},
"engines": {
"node": ">= 12"
2023-06-23 22:42:58 +02:00
}
}