1project( 2 'pest_generator', 3 'rust', 4 version : '2.7.11', 5 license :'MIT OR Apache-2.0', 6) 7 8pest = subproject('pest').get_variable('lib') 9pest_meta = subproject('pest_meta').get_variable('lib') 10quote = subproject('quote').get_variable('lib') 11pm2 = subproject('proc-macro2').get_variable('lib') 12syn = subproject('syn').get_variable('lib') 13 14rust_args = [ 15 '--cfg', 'feature="std"', 16] 17 18lib = static_library( 19 'pest_generator', 20 'src/lib.rs', 21 rust_args : rust_args, 22 override_options : ['rust_std=2021', 'build.rust_std=2021'], 23 link_with : [pest, pest_meta, pm2, quote, syn], 24 rust_abi : 'rust', 25 native : true, 26) 27 28dep_pest_generator = declare_dependency( 29 link_with : [lib, pest, pest_meta, quote, syn], 30) 31