meson,ci: Add the paste crate

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27397>
This commit is contained in:
Daniel Almeida 2024-04-08 12:58:25 -05:00 committed by Marge Bot
parent 923a0a727b
commit dde95fc039
3 changed files with 25 additions and 1 deletions

View File

@ -104,7 +104,7 @@ rm -rf _build
meson setup _build \
--native-file=native.file \
--wrap-mode=nofallback \
--force-fallback-for perfetto,syn \
--force-fallback-for perfetto,syn,paste \
${CROSS+--cross "$CROSS_FILE"} \
-D prefix=$PWD/install \
-D libdir=lib \

View File

@ -0,0 +1,18 @@
project(
'paste',
'rust',
version : '1.0.14',
license : '(MIT or Apache-2.0)',
)
add_languages('rust', required: true)
rust = import('rust')
lib = rust.proc_macro(
'paste',
files('src/lib.rs')
)
dep_paste = declare_dependency(
link_with : [lib],
)

6
subprojects/paste.wrap Normal file
View File

@ -0,0 +1,6 @@
[wrap-file]
directory = paste-1.0.14
source_url = https://crates.io/api/v1/crates/paste/1.0.14/download
source_filename = paste-1.0.14.tar.gz
source_hash = de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c
patch_directory = paste