Use bytemuck instead of unsafe Rust

This commit is contained in:
junderw
2023-06-25 00:44:08 -07:00
committed by Mononaut
parent 59b19eefe3
commit 939d2230d2
3 changed files with 12 additions and 4 deletions

7
Cargo.lock generated
View File

@@ -23,6 +23,12 @@ version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dbe3c979c178231552ecba20214a8272df4e09f232a87aef4320cf06539aded"
[[package]]
name = "bytemuck"
version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea"
[[package]]
name = "bytes"
version = "1.4.0"
@@ -58,6 +64,7 @@ dependencies = [
name = "gbt"
version = "0.1.0"
dependencies = [
"bytemuck",
"bytes",
"napi",
"napi-build",