diff --git a/subprojects/log.wrap b/subprojects/log.wrap new file mode 100644 index 00000000000..abf20c6cc9a --- /dev/null +++ b/subprojects/log.wrap @@ -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 diff --git a/subprojects/packagefiles/log/meson.build b/subprojects/packagefiles/log/meson.build new file mode 100644 index 00000000000..ecc213fed96 --- /dev/null +++ b/subprojects/packagefiles/log/meson.build @@ -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] +)