Debian Codegraph @

subprojects/packagefiles/zerocopy-0.8-rs/meson.build

raw
1 # Copyright © 2024 Google
2 # SPDX-License-Identifier: MIT
3
4 project(
5 'zerocopy',
6 'rust',
7 version : '0.8.13',
8 license : 'MIT OR Apache-2.0 OR BSD 2-Clause',
9 meson_version : '>= 1.7.0',
10 )
11
12 zerocopy_args = ['--cfg', 'feature="derive"']
13 zerocopy_derive = subproject('zerocopy-derive-0.8-rs').get_variable('lib')
14
15 lib = static_library(
16 'zerocopy',
17 'src/lib.rs',
18 override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
19 rust_abi : 'rust',
20 rust_args: zerocopy_args,
21 link_with : [zerocopy_derive]
22 )
23
24 dep_zerocopy = declare_dependency(
25 link_with : [lib, zerocopy_derive]
26 )