From f20d43d654e507389dda1c2ef71fe32b71ed961c Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Tue, 17 Dec 2024 07:14:35 -0800 Subject: [PATCH] subprojects: add cfg-if Version 1.0.0 supported in: - AOSP - Fedora (https://bodhi.fedoraproject.org/updates/?packages=rust-cfg-if) - Debian (https://tracker.debian.org/pkg/rust-cfg-if) Acked-by: Aaron Ruby Reviewed-by: @LingMan Part-of: --- subprojects/cfg-if.wrap | 6 ++++++ subprojects/packagefiles/cfg-if/meson.build | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 subprojects/cfg-if.wrap create mode 100644 subprojects/packagefiles/cfg-if/meson.build diff --git a/subprojects/cfg-if.wrap b/subprojects/cfg-if.wrap new file mode 100644 index 00000000000..8b634e9cc99 --- /dev/null +++ b/subprojects/cfg-if.wrap @@ -0,0 +1,6 @@ +[wrap-file] +directory = cfg-if-1.0.0 +source_url = https://crates.io/api/v1/crates/cfg-if/1.0.0/download +source_filename = cfg-if-1.0.0.tar.gz +source_hash = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd +patch_directory = cfg-if diff --git a/subprojects/packagefiles/cfg-if/meson.build b/subprojects/packagefiles/cfg-if/meson.build new file mode 100644 index 00000000000..8bbba45e0dd --- /dev/null +++ b/subprojects/packagefiles/cfg-if/meson.build @@ -0,0 +1,21 @@ +# Copyright © 2024 Google +# SPDX-License-Identifier: MIT + +project( + 'cfg-if', + 'rust', + version : '1.0.0', + license : 'MIT OR Apache-2.0', +) + +lib = static_library( + 'cfg_if', + 'src/lib.rs', + override_options : ['rust_std=2018', 'build.rust_std=2018'], + rust_abi : 'rust', + native : true, +) + +dep_cfg_if = declare_dependency( + link_with : [lib] +)