• Home
  • Raw
  • Download

Lines Matching +full:generate +full:- +full:env

9 use std::env;
21 fn will_parse_macro(&self, name: &str) -> MacroParsingBehavior { in will_parse_macro()
31 fn int_macro(&self, name: &str, _value: i64) -> Option<IntKind> { in int_macro()
51 // The integer test macro is, actually, not expected to show up here at all -- but in str_macro()
66 panic!("func_macro was called for a non-functional macro"); in func_macro()
69 // Spaces are inserted into the right-hand side of a functional in func_macro()
74 assert_eq!(value, &[b"-" as &[u8], b"TESTMACRO_INTEGER"]); in func_macro()
107 fn item_name(&self, original_item_name: &str) -> Option<String> { in item_name()
126 fn add_derives(&self, info: &DeriveInfo<'_>) -> Vec<String> { in add_derives()
161 let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); in setup_macro_test()
164 .strip_prefix(std::env::current_dir().unwrap().parent().unwrap()) in setup_macro_test()
178 .clang_args(&["-x", "c++", "-std=c++11", "-I", "include"]) in setup_macro_test()
188 .generate() in setup_macro_test()
189 .expect("Unable to generate bindings"); in setup_macro_test()
209 // GH-1090: https://github.com/rust-lang/rust-bindgen/issues/1090 in setup_wrap_static_fns_test()
211 let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); in setup_wrap_static_fns_test()
214 let input_header_dir = PathBuf::from("../bindgen-tests/tests/headers/") in setup_wrap_static_fns_test()
217 let input_header_file_path = input_header_dir.join("wrap-static-fns.h"); in setup_wrap_static_fns_test()
222 // generate external bindings with the external .c and .h files in setup_wrap_static_fns_test()
230 .generate() in setup_wrap_static_fns_test()
231 .expect("Unable to generate bindings"); in setup_wrap_static_fns_test()
233 println!("cargo:rustc-link-lib=static=wrap_static_fns"); // tell cargo to link libextern in setup_wrap_static_fns_test()
241 .arg("-c") in setup_wrap_static_fns_test()
242 .arg("-o") in setup_wrap_static_fns_test()
245 .arg("-include") in setup_wrap_static_fns_test()