Add zerocopy instance to raw bindings struct

This will come in handy later, when we integrate harmonia. It is a very
stable thing to do.
This commit is contained in:
John Ericson 2025-11-26 22:11:43 -05:00
parent 538f29a390
commit 0eb73977ef
3 changed files with 39 additions and 0 deletions

21
Cargo.lock generated
View file

@ -316,6 +316,7 @@ dependencies = [
"bindgen",
"nix-bindings-util-sys",
"pkg-config",
"zerocopy",
]
[[package]]
@ -611,3 +612,23 @@ name = "wit-bindgen"
version = "0.46.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
[[package]]
name = "zerocopy"
version = "0.8.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ea879c944afe8a2b25fef16bb4ba234f47c694565e97383b36f3a878219065c"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.8.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf955aa904d6040f70dc8e9384444cb1030aed272ba3cb09bbc4ab9e7c1f34f5"
dependencies = [
"proc-macro2",
"quote",
"syn",
]