Refactor rust-gbt

This commit is contained in:
junderw
2024-03-10 13:27:09 +09:00
parent 7bedb9488b
commit 92a5fc8159
22 changed files with 187 additions and 540 deletions

29
rust/gbt/Cargo.toml Normal file
View File

@@ -0,0 +1,29 @@
[package]
name = "gbt"
version = "1.0.0"
description = "An efficient re-implementation of the getBlockTemplate algorithm in Rust"
authors = ["mononaut"]
edition = "2021"
publish = false
[lib]
crate-type = ["cdylib"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
priority-queue = "2.0.2"
bytes = "1.4.0"
napi = { version = "2.16.0", features = ["napi8", "tokio_rt"] }
napi-derive = "2.16.0"
bytemuck = "1.13.1"
tracing = "0.1.36"
tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.15", features = ["env-filter"]}
[build-dependencies]
napi-build = "2.1.2"
[profile.release]
lto = true
codegen-units = 1