@@ -7,10 +7,8 @@ _arbitrary_int_rs = static_library(
'arbitrary_int',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
- rust_args: [
- '--edition', '2021',
- ],
dependencies: [],
)
@@ -22,8 +22,8 @@ rust = import('rust')
_bilge_impl_rs = rust.proc_macro(
'bilge_impl',
files('src/lib.rs'),
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_args: [
- '--edition', '2021',
'--cfg', 'use_fallback',
'--cfg', 'feature="syn-error"',
'--cfg', 'feature="proc-macro"',
@@ -7,9 +7,9 @@ _either_rs = static_library(
'either',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2018', 'build.rust_std=2018'],
rust_abi: 'rust',
rust_args: [
- '--edition', '2018',
'--cfg', 'feature="use_std"',
'--cfg', 'feature="use_alloc"',
],
@@ -11,9 +11,9 @@ _itertools_rs = static_library(
'itertools',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2018', 'build.rust_std=2018'],
rust_abi: 'rust',
rust_args: [
- '--edition', '2018',
'--cfg', 'feature="use_std"',
'--cfg', 'feature="use_alloc"',
],
@@ -16,9 +16,9 @@ syn_dep = dependency('syn-2-rs', native: true)
_proc_macro_error_rs = static_library(
'proc_macro_error',
files('src/lib.rs'),
+ override_options: ['rust_std=2018', 'build.rust_std=2018'],
rust_abi: 'rust',
rust_args: [
- '--edition', '2018',
'--cfg', 'use_fallback',
'--cfg', 'feature="syn-error"',
'--cfg', 'feature="proc-macro"',
@@ -13,8 +13,8 @@ rust = import('rust')
_proc_macro_error_attr_rs = rust.proc_macro(
'proc_macro_error_attr',
files('src/lib.rs'),
+ override_options: ['rust_std=2018', 'build.rust_std=2018'],
rust_args: [
- '--edition', '2018',
'--cfg', 'use_fallback',
'--cfg', 'feature="syn-error"',
'--cfg', 'feature="proc-macro"'
@@ -11,9 +11,9 @@ _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: [
- '--edition', '2021',
'--cfg', 'feature="proc-macro"',
'--cfg', 'no_literal_byte_character',
'--cfg', 'no_literal_c_string',
@@ -11,9 +11,9 @@ _quote_rs = static_library(
'quote',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
rust_args: [
- '--edition', '2021',
'--cfg', 'feature="proc-macro"',
],
dependencies: [
@@ -15,9 +15,9 @@ _syn_rs = static_library(
'syn',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
rust_args: [
- '--edition', '2021',
'--cfg', 'feature="full"',
'--cfg', 'feature="derive"',
'--cfg', 'feature="parsing"',
@@ -7,10 +7,8 @@ _unicode_ident_rs = static_library(
'unicode_ident',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
+ override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
- rust_args: [
- '--edition', '2021',
- ],
dependencies: [],
native: true,
)
Signed-off-by: Junjie Mao <junjie.mao@intel.com> --- subprojects/packagefiles/arbitrary-int-1-rs/meson.build | 4 +--- subprojects/packagefiles/bilge-impl-0.2-rs/meson.build | 2 +- subprojects/packagefiles/either-1-rs/meson.build | 2 +- subprojects/packagefiles/itertools-0.11-rs/meson.build | 2 +- subprojects/packagefiles/proc-macro-error-1-rs/meson.build | 2 +- .../packagefiles/proc-macro-error-attr-1-rs/meson.build | 2 +- subprojects/packagefiles/proc-macro2-1-rs/meson.build | 2 +- subprojects/packagefiles/quote-1-rs/meson.build | 2 +- subprojects/packagefiles/syn-2-rs/meson.build | 2 +- subprojects/packagefiles/unicode-ident-1-rs/meson.build | 4 +--- 10 files changed, 10 insertions(+), 14 deletions(-) -- 2.30.2