subprojects: add log

Version 0.4.27 available in:

- AOSP
- Fedora (https://src.fedoraproject.org/rpms/rust-log)

Acked-by: Aaron Ruby <aruby@qnx.com>
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35210>
This commit is contained in:
Gurchetan Singh 2024-12-18 15:18:08 -08:00 committed by Marge Bot
parent 043d503f9d
commit 92d7504de3
2 changed files with 27 additions and 0 deletions

6
subprojects/log.wrap Normal file
View file

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

View file

@ -0,0 +1,21 @@
# Copyright © 2024 Google
# SPDX-License-Identifier: MIT
project(
'log',
'rust',
version : '0.4.27',
license : 'MIT OR Apache-2.0',
)
lib = static_library(
'log',
'src/lib.rs',
override_options : ['rust_std=2021', 'build.rust_std=2021'],
rust_abi : 'rust',
native : true,
)
dep_log = declare_dependency(
link_with : [lib]
)