Home
last modified time | relevance | path

Searched full:rustc (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/third_party/rust/crates/rust-openssl/openssl/
Dbuild.rs11 println!("cargo:rustc-cfg=libressl"); in main()
15 println!("cargo:rustc-cfg=boringssl"); in main()
23 println!("cargo:rustc-cfg=libressl250"); in main()
26 println!("cargo:rustc-cfg=libressl251"); in main()
29 println!("cargo:rustc-cfg=libressl261"); in main()
32 println!("cargo:rustc-cfg=libressl270"); in main()
35 println!("cargo:rustc-cfg=libressl271"); in main()
38 println!("cargo:rustc-cfg=libressl273"); in main()
41 println!("cargo:rustc-cfg=libressl280"); in main()
44 println!("cargo:rustc-cfg=libressl291"); in main()
[all …]
/third_party/rust/crates/version_check/src/
Dlib.rs1 //! This tiny crate checks that the running or installed `rustc` meets some
4 //! `RUSTC` environment variable. If it is not set, then `rustc` is used. If
13 //! extern crate version_check as rustc;
15 //! if rustc::is_min_version("1.13.0").unwrap_or(false) {
16 //! println!("cargo:rustc-cfg=question_mark_operator");
26 //! extern crate version_check as rustc;
28 //! match rustc::is_min_date("2018-12-18") {
31 //! None => "Couldn't determine the rustc version."
41 //! extern crate version_check as rustc;
43 //! match rustc::is_feature_flaggable() {
[all …]
/third_party/rust/crates/serde/serde/
Dbuild.rs5 // The rustc-cfg strings below are *not* public API. Please let us know by
24 println!("cargo:rustc-cfg=no_core_try_from"); in main()
25 println!("cargo:rustc-cfg=no_num_nonzero_signed"); in main()
26 println!("cargo:rustc-cfg=no_systemtime_checked_add"); in main()
27 println!("cargo:rustc-cfg=no_relaxed_trait_bounds"); in main()
33 println!("cargo:rustc-cfg=no_float_copysign"); in main()
38 println!("cargo:rustc-cfg=no_serde_derive"); in main()
43 println!("cargo:rustc-cfg=no_target_has_atomic"); in main()
45 // based on rustc's compiler/rustc_target/src/spec/*.rs. in main()
55 println!("cargo:rustc-cfg=no_std_atomic64"); in main()
[all …]
/third_party/rust/crates/proc-macro2/
Dbuild.rs1 // rustc-cfg emitted by the build script:
5 // Enabled on rustc 1.29+ as long as procmacro2_semver_exempt is not set,
45 let rustc = rustc_minor_version().unwrap_or(u32::MAX); in main() localVariable
51 println!("cargo:rustc-cfg=procmacro2_semver_exempt"); in main()
55 println!("cargo:rustc-cfg=span_locations"); in main()
58 if rustc < 57 { in main()
59 println!("cargo:rustc-cfg=no_is_available"); in main()
62 if rustc < 66 { in main()
63 println!("cargo:rustc-cfg=no_source_text"); in main()
109 println!("cargo:rustc-cfg=wrap_proc_macro"); in main()
[all …]
/third_party/rust/crates/io-lifetimes/
Dbuild.rs20 // the rustc version. in main()
31 println!("cargo:rustc-cfg={}", feature); in use_feature()
34 /// Test whether the rustc at `var("RUSTC")` supports the given feature.
42 /// Test whether the rustc at `var("RUSTC")` can compile the given code.
47 let rustc = var("RUSTC").unwrap(); in can_compile() localVariable
52 // The wrapper's first argument is supposed to be the path to rustc. in can_compile()
53 cmd.arg(rustc); in can_compile()
56 std::process::Command::new(rustc) in can_compile()
87 /// Test whether the rustc at `var("RUSTC")` supports panic in `const fn`.
92 /// Test whether the rustc at `var("RUSTC")` supports the I/O safety feature.
/third_party/rust/crates/version_check/
DREADME.md7 This tiny crate checks that the running or installed `rustc` meets some version
9 `--version`. The path to the compiler is determined first via the `RUSTC`
10 environment variable. If it is not set, then `rustc` is used. If that fails, no
30 extern crate version_check as rustc;
32 if rustc::is_min_version("1.13.0").unwrap_or(false) {
33 println!("cargo:rustc-cfg=question_mark_operator");
40 extern crate version_check as rustc;
42 match rustc::is_min_date("2018-12-18") {
45 None => "Couldn't determine the rustc version."
52 extern crate version_check as rustc;
[all …]
/third_party/rust/crates/cxx/
Dbuild.rs6 if let Some(rustc) = rustc_version() { in main()
7 if rustc.minor < 60 { in main()
8 println!("cargo:warning=The cxx crate requires a rustc version 1.60.0 or newer."); in main()
11 rustc.version, in main()
23 let rustc = env::var_os("RUSTC")?; in rustc_version() localVariable
24 let output = Command::new(rustc).arg("--version").output().ok()?; in rustc_version()
27 if pieces.next() != Some("rustc 1") { in rustc_version()
/third_party/rust/crates/rustc-hash/
DREADME.md1 # rustc-hash
3 [![crates.io](https://img.shields.io/crates/v/rustc-hash.svg)](https://crates.io/crates/rustc-hash)
4 [![Documentation](https://docs.rs/rustc-hash/badge.svg)](https://docs.rs/rustc-hash)
6 A speedy hash algorithm used within rustc. The hashmap in liballoc by
14 values. It consistently out-performs an FNV-based hash within rustc
34 rustc-hash = { version = "1.1", default-features = false }
DCargo.toml2 name = "rustc-hash"
5 description = "speedy, non-cryptographic hash used in rustc"
8 keywords = ["hash", "fxhash", "rustc"]
9 repository = "https://github.com/rust-lang-nursery/rustc-hash"
/third_party/rust/crates/autocfg/src/
Dlib.rs2 //! compiler support. Code snippets are dynamically tested to see if the `rustc`
32 //! If the type test succeeds, this will write a `cargo:rustc-cfg=has_i128` line
85 rustc: PathBuf, field
92 /// Writes a config flag for rustc on standard out.
94 /// This looks like: `cargo:rustc-cfg=CFG`
96 /// Cargo will use this in arguments to rustc, like `--cfg CFG`.
98 println!("cargo:rustc-cfg={}", cfg); in emit()
105 /// This requires at least cargo 0.7.0, corresponding to rustc 1.6.0. Earlier
116 /// This requires at least cargo 0.21.0, corresponding to rustc 1.20.0. Earlier
136 /// - `rustc` can't be executed, from `RUSTC` or in the `PATH`.
[all …]
Dversion.rs25 pub fn from_rustc(rustc: &Path) -> Result<Self, Error> { in from_rustc()
26 // Get rustc's verbose version in from_rustc()
27 let output = try!(Command::new(rustc) in from_rustc()
32 return Err(error::from_str("could not execute rustc")); in from_rustc()
39 None => return Err(error::from_str("could not find rustc release")), in from_rustc()
/third_party/rust/crates/syn/
Dbuild.rs5 // The rustc-cfg strings below are *not* public API. Please let us know by
15 println!("cargo:rustc-cfg=syn_disable_nightly_tests"); in main()
20 let rustc = cargo_env_var("RUSTC"); in unstable() localVariable
22 // Pick up Cargo rustc configuration. in unstable()
25 // The wrapper's first argument is supposed to be the path to rustc. in unstable()
26 cmd.arg(rustc); in unstable()
29 Command::new(rustc) in unstable()
66 // This rustc invocation should take around 0.03 seconds. in unstable()
/third_party/rust/crates/rustix/
Dbuild.rs11 // the rustc version. in main()
45 // Check for `--features=rustc-dep-of-std`. This is used when rustix is in main()
56 // rustc flag rather than a cargo feature flag because it's experimental in main()
124 println!("cargo:rustc-link-search={}/{}", OUTLINE_PATH, profile); in link_in_librustix_outline()
125 println!("cargo:rustc-link-lib=static={}", name); in link_in_librustix_outline()
171 println!("cargo:rustc-cfg={}", feature); in use_feature()
174 /// Test whether the rustc at `var("RUSTC")` supports the given feature.
182 /// Test whether the rustc at `var("RUSTC")` can compile the given code.
187 let rustc = var("RUSTC").unwrap(); in can_compile() localVariable
192 // The wrapper's first argument is supposed to be the path to rustc. in can_compile()
[all …]
/third_party/rust/crates/libc/
Dbuild.rs165 // check-cfg is a nightly cargo/rustc feature to warn when unknown cfgs are used across the in main()
173 println!("cargo:rustc-check-cfg=cfg({})", cfg); in main()
175 println!("cargo:rustc-check-cfg=values({})", cfg); in main()
181 println!("cargo:rustc-check-cfg=cfg({},values(\"{}\"))", name, values); in main()
183 println!("cargo:rustc-check-cfg=values({},\"{}\")", name, values); in main()
194 None => panic!("Failed to get rustc version"), in rustc_minor_nightly()
199 let rustc = otry!(env::var_os("RUSTC")); in rustc_minor_nightly() localVariable
200 let output = Command::new(rustc) in rustc_minor_nightly()
204 .expect("Failed to get rustc version"); in rustc_minor_nightly()
207 "failed to run rustc: {}", in rustc_minor_nightly()
[all …]
/third_party/rust/crates/memoffset/
Dbuild.rs8 println!("cargo:rustc-cfg=tuple_ty"); in main()
11 println!("cargo:rustc-cfg=allow_clippy"); in main()
14 println!("cargo:rustc-cfg=maybe_uninit"); in main()
17 println!("cargo:rustc-cfg=doctests"); in main()
20 println!("cargo:rustc-cfg=raw_ref_macros"); in main()
23 println!("cargo:rustc-cfg=stable_const"); in main()
/third_party/rust/crates/memchr/
Dbuild.rs27 println!("cargo:rustc-cfg=memchr_runtime_simd"); in enable_simd_optimizations()
28 println!("cargo:rustc-cfg=memchr_runtime_sse2"); in enable_simd_optimizations()
29 println!("cargo:rustc-cfg=memchr_runtime_sse42"); in enable_simd_optimizations()
30 println!("cargo:rustc-cfg=memchr_runtime_avx"); in enable_simd_optimizations()
36 println!("cargo:rustc-cfg=memchr_runtime_simd"); in enable_simd_optimizations()
37 println!("cargo:rustc-cfg=memchr_runtime_wasm128"); in enable_simd_optimizations()
73 println!("cargo:rustc-cfg=memchr_libc"); in enable_libc()
/third_party/rust/crates/autocfg/
DREADME.md6 ![minimum rustc 1.0](https://img.shields.io/badge/rustc-1.0+-red.svg)
10 compiler support. Code snippets are dynamically tested to see if the `rustc`
38 If the type test succeeds, this will write a `cargo:rustc-cfg=has_i128` line
64 - Mask some warnings from newer rustc.
68 - Improve `rustc` bootstrap compatibility.
80 This crate's minimum supported `rustc` version is `1.0.0`. Compatibility is
/third_party/rust/crates/bindgen/csmith-fuzzing/
Dpredicate.py16 compiled with `rustc`. Finally, the compiled bindings' layout tests are run.
26 compile with `rustc`, and want to exit non-zero early if that is not the
89 dest="rustc",
90 help="Do not attempt to compile the emitted bindings with `rustc`.")
98 help="Exit non-zero if `rustc` successfully compiles the emitted bindings.")
100 "--rustc-grep",
102 …help="Exit non-zero if the output from compiling the bindings with `rustc` does not contain the gi…
149 if args.rustc and not args.expect_bindgen_fail:
238 ["rustc", "--crate-type", "lib", "--test", "-o", test_exe, bindings],
246 exit_1("Error: did not find '{}' in `rustc`'s output".format(args.rustc_grep), child)
[all …]
/third_party/rust/crates/clang-sys/build/
Dstatic.rs107 println!("cargo:rustc-link-search=native={}", directory.display()); in link()
109 println!("cargo:rustc-link-lib=static={}", library); in link()
122 "cargo:rustc-link-search=native={}", in link()
126 println!("cargo:rustc-link-lib={}{}", prefix, library); in link()
132 println!("cargo:rustc-flags=-l ffi -l ncursesw -l c++ -l z"); in link()
134 println!("cargo:rustc-flags=-l ffi -l ncursesw -l stdc++ -l z"); in link()
136 println!("cargo:rustc-flags=-l ffi -l ncurses -l c++ -l z"); in link()
/third_party/rust/crates/rust-openssl/openssl-sys/build/
Dmain.rs61 println!("cargo:rustc-cfg=boringssl"); in check_ssl_kind()
87 "cargo:rustc-link-search=native={}", in main()
115 println!("cargo:rustc-link-lib={}={}", kind, lib); in main()
119 println!("cargo:rustc-link-lib=dylib=gdi32"); in main()
120 println!("cargo:rustc-link-lib=dylib=user32"); in main()
121 println!("cargo:rustc-link-lib=dylib=crypt32"); in main()
122 println!("cargo:rustc-link-lib=dylib=ws2_32"); in main()
123 println!("cargo:rustc-link-lib=dylib=advapi32"); in main()
217 println!("cargo:rustc-cfg=boringssl"); in validate_headers()
224 println!("cargo:rustc-cfg=openssl"); in validate_headers()
[all …]
/third_party/gn/examples/rust_example/build/
DBUILD.gn5 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf…
13 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf…
21 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf…
29 …command = "rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} --emit=dep-inf…
/third_party/rust/crates/autocfg/examples/
Dpaths.rs11 // rustc 1.10.0 in main()
15 // rustc 1.20.0 in main()
19 // rustc 1.25.0 in main()
Dtraits.rs15 // rustc 1.8.0 in main()
19 // rustc 1.12.0 in main()
23 // rustc 1.28.0 in main()
/third_party/gn/src/gn/
Djson_project_writer_unittest.cc160 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
169 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
180 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
191 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
202 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
213 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
385 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
394 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
405 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
416 …"command": "{{rustenv}} rustc --crate-name {{crate_name}} {{source}} --crate-type {{crate_type}} {…
[all …]
/third_party/rust/crates/which-rs/
DREADME.md15 1) To find which rustc executable binary is using.
20 let result = which("rustc").unwrap();
21 assert_eq!(result, PathBuf::from("/usr/bin/rustc"));

12345678910>>...13