blob: 8e601b50ccce3df04adabeb03b5c0512d08a7306 [file] [log] [blame]
project('proc-macro2-1-rs', 'rust',
version: '1.0.84',
license: 'MIT OR Apache-2.0',
default_options: [])
subproject('unicode-ident-1-rs', required: true)
unicode_ident_dep = dependency('unicode-ident-1-rs', native: true)
_proc_macro2_rs = static_library(
'proc_macro2',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
rust_args: [
'--cfg', 'feature="proc-macro"',
'--cfg', 'no_literal_byte_character',
'--cfg', 'no_literal_c_string',
'--cfg', 'no_source_text',
'--cfg', 'wrap_proc_macro',
],
dependencies: [
unicode_ident_dep,
],
native: true,
)
proc_macro2_dep = declare_dependency(
link_with: _proc_macro2_rs,
)
meson.override_dependency('proc-macro2-1-rs', proc_macro2_dep, native: true)