mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 10:10:09 +01:00
A transitive dependency is a dependency of a dependency. So if, for example, mesa3d_util does explicitly use zerocopy-derive, it should not need to a depend on it. The package that pulls in transitive should already include it has a dependency. This provides clearer methodologies in maintaining Rust code, similiar to how Cargo.toml handles it. Reviewed-by: David Gilhooley <djgilhooley.gmail.com>
26 lines
635 B
Meson
26 lines
635 B
Meson
# Copyright © 2024 Google
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
project(
|
|
'thiserror',
|
|
'rust',
|
|
version : '2.0.11',
|
|
license : 'MIT OR Apache-2.0',
|
|
)
|
|
|
|
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')
|
|
|
|
lib = static_library(
|
|
'thiserror',
|
|
'src/lib.rs',
|
|
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
|
rust_abi : 'rust',
|
|
link_with : [thiserror_impl]
|
|
)
|
|
|
|
dep_thiserror = declare_dependency(
|
|
link_with : [lib, thiserror_impl]
|
|
)
|