mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
subprojects: Pull in the Rust xml crate
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41841>
This commit is contained in:
parent
237b648d88
commit
3557f69ded
3 changed files with 32 additions and 0 deletions
|
|
@ -175,6 +175,7 @@ meson_subprojects=(
|
|||
thiserror-impl-2-rs
|
||||
ucd-trie-0.1-rs
|
||||
unicode-ident-1-rs
|
||||
xml-rs
|
||||
zerocopy-derive-0.8-rs
|
||||
${FORCE_FALLBACK_FOR:-}
|
||||
)
|
||||
|
|
|
|||
25
subprojects/packagefiles/xml-rs/meson.build
Normal file
25
subprojects/packagefiles/xml-rs/meson.build
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
project(
|
||||
'xml',
|
||||
'rust',
|
||||
version : '1.2.1',
|
||||
license : 'MIT',
|
||||
meson_version : '>= 1.7.0',
|
||||
)
|
||||
|
||||
rc = meson.get_compiler('rust')
|
||||
|
||||
if rc.version().version_compare('< 1.71')
|
||||
error('Minimum rustc supported version is 1.71')
|
||||
endif
|
||||
|
||||
lib = static_library(
|
||||
'xml',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
||||
dep_xml_rs = declare_dependency(
|
||||
link_with : [lib],
|
||||
)
|
||||
6
subprojects/xml-rs.wrap
Normal file
6
subprojects/xml-rs.wrap
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[wrap-file]
|
||||
directory = xml-1.2.1
|
||||
source_url = https://crates.io/api/v1/crates/xml/1.2.1/download
|
||||
source_filename = xml-1.2.1.tar.gz
|
||||
source_hash = b8aa498d22c9bbaf482329839bc5620c46be275a19a812e9a22a2b07529a642a
|
||||
patch_directory = xml-rs
|
||||
Loading…
Add table
Reference in a new issue