Debian Codegraph @

src/nouveau/rust/meson.build

raw
1 # Copyright © 2025 Collabora, Ltd.
2 # SPDX-License-Identifier: MIT
3
4 nouveau_rust_args = [
5 rust_global_args,
6 rust_2024_lint_args,
7 '-Aclippy::identity_op',
8 '-Aclippy::len_zero',
9 '-Aclippy::manual_range_contains',
10 # normally this is a good one, but we use it where the "better" code is worse
11 '-Aclippy::needless_range_loop',
12 '-Aclippy::redundant_field_names',
13 '-Aclippy::upper_case_acronyms',
14 '-Aclippy::vec_box',
15 '-Aclippy::write_with_newline',
16 # warns about public function might dereference a raw pointer, but nothing is
17 # actually public here
18 '-Aclippy::not_unsafe_ptr_arg_deref',
19 '-Anon_snake_case',
20 ]
21
22 _libbitview_rs = static_library(
23 'bitview',
24 files('bitview/lib.rs'),
25 gnu_symbol_visibility : 'hidden',
26 rust_abi : 'rust',
27 rust_args : nouveau_rust_args,
28 )
29
30 idep_bitview_rs = declare_dependency(
31 link_with : _libbitview_rs,
32 )