2024-12-17 13:27:29 -08:00
|
|
|
# Copyright © 2024 Google
|
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
|
|
project(
|
|
|
|
|
'thiserror',
|
|
|
|
|
'rust',
|
|
|
|
|
version : '2.0.11',
|
|
|
|
|
license : 'MIT OR Apache-2.0',
|
|
|
|
|
)
|
|
|
|
|
|
2025-07-22 08:43:52 +02:00
|
|
|
syn = subproject('syn-2-rs').get_variable('lib')
|
|
|
|
|
quote = subproject('quote-1-rs').get_variable('lib')
|
|
|
|
|
proc_macro2 = subproject('proc-macro2-1-rs').get_variable('lib')
|
|
|
|
|
thiserror_impl = subproject('thiserror-impl-2-rs').get_variable('lib')
|
2024-12-17 13:27:29 -08:00
|
|
|
|
|
|
|
|
lib = static_library(
|
|
|
|
|
'thiserror',
|
|
|
|
|
'src/lib.rs',
|
2025-12-04 15:37:18 +01:00
|
|
|
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
2024-12-17 13:27:29 -08:00
|
|
|
rust_abi : 'rust',
|
2025-09-26 11:19:46 -07:00
|
|
|
link_with : [thiserror_impl]
|
2024-12-17 13:27:29 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
dep_thiserror = declare_dependency(
|
2025-10-01 17:42:28 -07:00
|
|
|
link_with : [lib, thiserror_impl]
|
2024-12-17 13:27:29 -08:00
|
|
|
)
|