Debian Codegraph @

subprojects/packagefiles/thiserror-2-rs/meson.build

raw
1 # Copyright © 2024 Google
2 # SPDX-License-Identifier: MIT
3
4 project(
5 'thiserror',
6 'rust',
7 version : '2.0.11',
8 license : 'MIT OR Apache-2.0',
9 meson_version : '>= 1.7.0',
10 )
11
12 syn = subproject('syn-2-rs').get_variable('lib')
13 quote = subproject('quote-1-rs').get_variable('lib')
14 proc_macro2 = subproject('proc-macro2-1-rs').get_variable('lib')
15 thiserror_impl = subproject('thiserror-impl-2-rs').get_variable('lib')
16
17 lib = static_library(
18 'thiserror',
19 'src/lib.rs',
20 override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
21 rust_abi : 'rust',
22 link_with : [thiserror_impl]
23 )
24
25 dep_thiserror = declare_dependency(
26 link_with : [lib, thiserror_impl]
27 )