nak: Add a dependency on rustc-hash

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865>
This commit is contained in:
Mel Henning
2025-05-06 19:41:13 -04:00
committed by Marge Bot
parent b4b557c9ef
commit c1f979d84a
4 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
project(
'rustc_hash',
'rust',
version : '2.1.1',
license :'MIT OR Apache-2.0',
)
rust_args = [
'--cfg', 'feature="std"'
]
lib = static_library(
'rustc_hash',
'src/lib.rs',
rust_args : rust_args,
override_options : ['rust_std=2021', 'build.rust_std=2021'],
rust_abi : 'rust',
native : true,
)
dep_rustc_hash = declare_dependency(
link_with : [lib],
)

View File

@@ -0,0 +1,6 @@
[wrap-file]
directory = rustc-hash-2.1.1
source_url = https://crates.io/api/v1/crates/rustc-hash/2.1.1/download
source_filename = rustc-hash-2.1.1.tar.gz
source_hash = 357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d
patch_directory = rustc-hash