rust9x / rust

Empowering everyone to build reliable and efficient software, even for Windows 9x/Me/NT/2000/XP/Vista.
https://github.com/rust9x/rust/wiki
Other
334 stars 10 forks source link

Add 64-bit rust9x target for XP and Vista x86_64 #3

Closed seritools closed 9 months ago

seritools commented 2 years ago

The regular target would mostly work as the stdlib impl is shared, however it might be useful to be able to do conditional compilation based on cfg(target_vendor = "rust9x").

seritools commented 9 months ago

Added with the update to 1.76-beta.

LordRibblesdale commented 9 months ago

Hi! I would like to ask a question about cross-compiling with --target=x86_64-rust9x-windows-msvc. After adding the precompiled rust9x as rust9x-1.76.0-beta-v2 in my toolchain list, I run cargo +rust9x-1.76.0-beta-v2 build --target=x86_64-rust9x-windows-msvc .... compilation command on my project. I got errors like error[E0463]: can't find crate forstd`,error: cannot find macro println in this scope` or something else related to std library.

Do I miss anything else for compiling on x86_64-rust9x-windows-msvc? Thanks in advance!

EDIT: I'm adding additional log from errors:

``` Compiling proc-macro2 v1.0.71 Compiling unicode-ident v1.0.12 Compiling autocfg v1.1.0 Compiling windows_x86_64_msvc v0.48.5 Compiling cfg-if v1.0.0 Compiling serde v1.0.193 Compiling windows_x86_64_msvc v0.52.0 Compiling version_check v0.9.4 Compiling syn v1.0.109 Compiling once_cell v1.19.0 Compiling log v0.4.20 Compiling parking_lot_core v0.9.9 error[E0463]: can't find crate for `std` error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:37:5 | 37 | use std::env; | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:38:5 | 38 | use std::process::Command; | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:39:5 | 39 | use std::str; | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:40:5 | 40 | use std::u32; | ^^^ can't find crate error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:82:9 | 82 | println!("cargo:rustc-cfg=super_unstable"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:78:9 | 78 | println!("cargo:rustc-cfg=proc_macro_span"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:74:9 | 74 | println!("cargo:rustc-cfg=wrap_proc_macro"); | ^^^^^^^ error: cannot find macro `cfg` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:69:9 | 69 | if !cfg!(feature = "proc-macro") { | ^^^ | = note: `cfg` is in scope, but it is an attribute: `#[cfg]` error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:66:9 | 66 | println!("cargo:rustc-cfg=no_source_text"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:62:9 | 62 | println!("cargo:rustc-cfg=no_is_available"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:58:9 | 58 | println!("cargo:rustc-cfg=span_locations"); | ^^^^^^^ error: cannot find macro `cfg` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:57:25 | 57 | if semver_exempt || cfg!(feature = "span-locations") { | ^^^ | = note: `cfg` is in scope, but it is an attribute: `#[cfg]` error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:54:9 | 54 | println!("cargo:rustc-cfg=procmacro2_semver_exempt"); | ^^^^^^^ error: cannot find macro `cfg` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:51:25 | 51 | let semver_exempt = cfg!(procmacro2_semver_exempt) || docs_rs; | ^^^ | = note: `cfg` is in scope, but it is an attribute: `#[cfg]` error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:43:5 | 43 | println!("cargo:rerun-if-changed=build.rs"); | ^^^^^^^ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:91:23 | 91 | fn rustc_version() -> Option { | ^^^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:98:16 | 98 | return None; | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:113:24 | 113 | let flags = if let Some(encoded_rustflags) = env::var_os("CARGO_ENCODED_RUSTFLAGS") { | ^^^^ not found in this scope error: requires `sized` lang_item error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:97:25 | 97 | if pieces.next() != Some("rustc 1") { | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.71\build.rs:101:5 | 101 | Some(RustcVersion { minor, nightly }) | ^^^^ not found in this scope Some errors have detailed explanations: E0412, E0425, E0463, E0531. For more information about an error, try `rustc --explain E0412`. error: could not compile `proc-macro2` (build script) due to 22 previous errors warning: build failed, waiting for other jobs to finish... error[E0463]: can't find crate for `core` error[E0463]: can't find crate for `compiler_builtins` For more information about this error, try `rustc --explain E0463`. error: could not compile `unicode-ident` (lib) due to 3 previous errors error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:8:3 | 8 | #[derive(Debug)] | ^^^^^^ error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:39:3 | 39 | #[derive(Debug)] | ^^^^^^ error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:8:3 | 8 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] | ^^^^^^ error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:82:3 | 82 | #[derive(Clone, Debug)] | ^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:98:5 | 98 | println!("cargo:rustc-cfg={}", cfg); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:108:5 | 108 | println!("cargo:rerun-if-changed={}", path); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:119:5 | 119 | println!("cargo:rerun-if-env-changed={}", var); | ^^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:201:19 | 201 | emit(&format!("rustc_{}_{}", major, minor)); | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:213:18 | 213 | .arg(format!("probe{}", id)) | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:247:20 | 247 | self.probe(format!("extern crate {} as probe;", name)) // `as _` wasn't stabilized until Rust 1.33 | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:254:19 | 254 | emit(&format!("has_{}", mangle(name))); | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:266:20 | 266 | self.probe(format!("pub use {};", path)).unwrap_or(false) | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:275:19 | 275 | emit(&format!("has_{}", mangle(path))); | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:294:20 | 294 | self.probe(format!("pub trait Probe: {} + Sized {{}}", name)) | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:304:19 | 304 | emit(&format!("has_{}", mangle(name))); | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:323:20 | 323 | self.probe(format!("pub type Probe = {};", name)) | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:333:19 | 333 | emit(&format!("has_{}", mangle(name))); | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:352:20 | 352 | self.probe(format!("pub fn probe() {{ let _ = {}; }}", expr)) | ^^^^^^ error: cannot find macro `format` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:371:20 | 371 | self.probe(format!("pub const PROBE: () = ((), {}).0;", expr)) | ^^^^^^ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:18:24 | 18 | fn cause(&self) -> Option<&error::Error> { | ^^^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:23:36 | 23 | ErrorKind::Other(_) => None, | ^^^^ not found in this scope error[E0412]: cannot find type `Result` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:29:46 | 29 | fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Result` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:25:40 | 25 | pub fn from_rustc(rustc: &Path) -> Result { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:27:22 | 27 | let output = try!(Command::new(rustc) | ______________________- 28 | | .args(&["--version", "--verbose"]) 29 | | .output() 30 | | .map_err(error::from_io)); | |_____________________________________- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:27:22 | 27 | let output = try!(Command::new(rustc) | ______________________- 28 | | .args(&["--version", "--verbose"]) 29 | | .output() 30 | | .map_err(error::from_io)); | |_____________________________________- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:34:22 | 34 | let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); | -------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:34:22 | 34 | let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); | -------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:38:13 | 38 | Some(line) => &line["release: ".len()..], | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:44:13 | 44 | Some(i) => &release[..i], | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:50:21 | 50 | let major = try!(iter.next().ok_or(error::from_str("missing major version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:50:21 | 50 | let major = try!(iter.next().ok_or(error::from_str("missing major version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:51:21 | 51 | let minor = try!(iter.next().ok_or(error::from_str("missing minor version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:51:21 | 51 | let minor = try!(iter.next().ok_or(error::from_str("missing minor version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:52:21 | 52 | let patch = try!(iter.next().ok_or(error::from_str("missing patch version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:52:21 | 52 | let patch = try!(iter.next().ok_or(error::from_str("missing patch version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:55:13 | 55 | try!(major.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:55:13 | 55 | try!(major.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:56:13 | 56 | try!(minor.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:56:13 | 56 | try!(minor.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:57:13 | 57 | try!(patch.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:57:13 | 57 | try!(patch.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:87:13 | 87 | target: Option, | ^^^^^^ not found in this scope error[E0412]: cannot find type `Vec` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:89:16 | 89 | rustflags: Vec, | ^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:89:20 | 89 | rustflags: Vec, | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 83 | pub struct AutoCfg { | ++++++++ error[E0412]: cannot find type `Result` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:140:21 | 140 | pub fn new() -> Result { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:142:13 | 142 | Some(d) => Self::with_dir(d), | ^^^^ not found in this scope error[E0405]: cannot find trait `Into` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:155:24 | 155 | pub fn with_dir>(dir: T) -> Result { | ^^^^ not found in this scope error[E0412]: cannot find type `Result` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:155:50 | 155 | pub fn with_dir>(dir: T) -> Result { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope ... 158 | let rustc_version = try!(Version::from_rustc(&rustc)); | --------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 158 | let rustc_version = try!(Version::from_rustc(&rustc)); | --------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope ... 164 | let meta = try!(fs::metadata(&dir).map_err(error::from_io)); | ------------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 164 | let meta = try!(fs::metadata(&dir).map_err(error::from_io)); | ------------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0405]: cannot find trait `AsRef` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:205:17 | 205 | fn probe>(&self, code: T) -> Result { | ^^^^^ not found in this scope error[E0412]: cannot find type `Result` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:205:49 | 205 | fn probe>(&self, code: T) -> Result { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:219:16 | 219 | if let Some(target) = self.target.as_ref() { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope ... 226 | let mut child = try!(command.spawn().map_err(error::from_io)); | --------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 226 | let mut child = try!(command.spawn().map_err(error::from_io)); | --------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope ... 230 | try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io)); | -------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 230 | try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io)); | -------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope ... 232 | try!(stdin.write_all(code.as_ref()).map_err(error::from_io)); | ------------------------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 232 | try!(stdin.write_all(code.as_ref()).map_err(error::from_io)); | ------------------------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:56:13 | 56 | Ok(value) => value, | ^^ not found in this scope ... 235 | let status = try!(child.wait().map_err(error::from_io)); | ------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:13 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 235 | let status = try!(child.wait().map_err(error::from_io)); | ------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:383:23 | 383 | fn mangle(s: &str) -> String { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:393:14 | 393 | target: &Option, | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:395:23 | 395 | cargo_target_dir: Option, | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:414:23 | 414 | fn rustflags(target: &Option, dir: &Path) -> Vec { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Vec` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:414:56 | 414 | fn rustflags(target: &Option, dir: &Path) -> Vec { | ^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:414:60 | 414 | fn rustflags(target: &Option, dir: &Path) -> Vec { | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 414 | fn rustflags(target: &Option, dir: &Path) -> Vec { | ++++++++ error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:420:12 | 420 | if let Ok(a) = env::var("CARGO_ENCODED_RUSTFLAGS") { | ^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:440:16 | 440 | if let Ok(rustflags) = env::var("RUSTFLAGS") { | ^^ not found in this scope error[E0433]: failed to resolve: use of undeclared type `Vec` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:422:13 | 422 | Vec::new() | ^^^ use of undeclared type `Vec` error[E0433]: failed to resolve: use of undeclared type `Vec` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:452:5 | 452 | Vec::new() | ^^^ use of undeclared type `Vec` error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:20:37 | 20 | ErrorKind::Io(ref e) => Some(e), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:21:38 | 21 | ErrorKind::Num(ref e) => Some(e), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\error.rs:22:39 | 22 | ErrorKind::Utf8(ref e) => Some(e), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:27:22 | 27 | let output = try!(Command::new(rustc) | ______________________- 28 | | .args(&["--version", "--verbose"]) 29 | | .output() 30 | | .map_err(error::from_io)); | |_____________________________________- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:32:20 | 32 | return Err(error::from_str("could not execute rustc")); | ^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:34:22 | 34 | let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); | -------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:39:28 | 39 | None => return Err(error::from_str("could not find rustc release")), | ^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:50:21 | 50 | let major = try!(iter.next().ok_or(error::from_str("missing major version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:51:21 | 51 | let minor = try!(iter.next().ok_or(error::from_str("missing minor version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:52:21 | 52 | let patch = try!(iter.next().ok_or(error::from_str("missing patch version"))); | ----------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:54:9 | 54 | Ok(Version::new( | ^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:55:13 | 55 | try!(major.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:56:13 | 56 | try!(minor.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope | ::: C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\version.rs:57:13 | 57 | try!(patch.parse().map_err(error::from_num)), | -------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:143:21 | 143 | None => Err(error::from_str("no OUT_DIR specified!")), | ^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 158 | let rustc_version = try!(Version::from_rustc(&rustc)); | --------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 164 | let meta = try!(fs::metadata(&dir).map_err(error::from_io)); | ------------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:166:20 | 166 | return Err(error::from_str("output path is not a writable directory")); | ^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:188:9 | 188 | Ok(ac) | ^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 226 | let mut child = try!(command.spawn().map_err(error::from_io)); | --------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 230 | try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io)); | -------------------------------------------------------------- in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 232 | try!(stdin.write_all(code.as_ref()).map_err(error::from_io)); | ------------------------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function `drop` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:233:9 | 233 | drop(stdin); | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:57:34 | 57 | Err(error) => return Err(error), | ^^^ not found in this scope ... 235 | let status = try!(child.wait().map_err(error::from_io)); | ------------------------------------------ in this macro invocation | = note: this error originates in the macro `try` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\autocfg-1.1.0\src\lib.rs:236:9 | 236 | Ok(status.success()) | ^^ not found in this scope Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0463, E0531. For more information about an error, try `rustc --explain E0405`. error: could not compile `autocfg` (lib) due to 99 previous errors error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:1:5 | 1 | use std::env; | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:2:5 | 2 | use std::process::Command; | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:3:5 | 3 | use std::str::{self, FromStr}; | ^^^ can't find crate error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:65:9 | 65 | println!("cargo:rustc-cfg=no_core_cstr"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:58:13 | 58 | println!("cargo:rustc-cfg=no_std_atomic"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:55:13 | 55 | println!("cargo:rustc-cfg=no_std_atomic64"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:43:9 | 43 | println!("cargo:rustc-cfg=no_target_has_atomic"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:38:9 | 38 | println!("cargo:rustc-cfg=no_serde_derive"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:33:9 | 33 | println!("cargo:rustc-cfg=no_float_copysign"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:27:9 | 27 | println!("cargo:rustc-cfg=no_relaxed_trait_bounds"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:26:9 | 26 | println!("cargo:rustc-cfg=no_systemtime_checked_add"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:25:9 | 25 | println!("cargo:rustc-cfg=no_num_nonzero_signed"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:24:9 | 24 | println!("cargo:rustc-cfg=no_core_try_from"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:9:5 | 9 | println!("cargo:rerun-if-changed=build.rs"); | ^^^^^^^ error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:12:9 | 12 | Some(minor) => minor, | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:69:29 | 69 | fn rustc_minor_version() -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:71:9 | 71 | Some(rustc) => rustc, | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:76:9 | 76 | Ok(output) => output, | ^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:77:9 | 77 | Err(_) => return None, | ^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:77:26 | 77 | Err(_) => return None, | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:81:9 | 81 | Ok(version) => version, | ^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:82:9 | 82 | Err(_) => return None, | ^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:82:26 | 82 | Err(_) => return None, | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:87:16 | 87 | return None; | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:91:9 | 91 | Some(next) => next, | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.193\build.rs:86:25 | 86 | if pieces.next() != Some("rustc 1") { | ^^^^ not found in this scope error: could not compile `serde` (build script) due to 28 previous errors error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\build.rs:9:5 | 9 | println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); | ^^^^^^^ error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\build.rs:2:18 | 2 | let target = std::env::var("TARGET").unwrap(); | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\build.rs:7:15 | 7 | let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); | ^^^ can't find crate error: could not compile `windows_x86_64_msvc` (build script) due to 5 previous errors error: cannot find macro `write` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:180:9 | 180 | write!(f, "{}-{:02}-{:02}", y, m, d) | ^^^^^ error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:5:3 | 5 | #[derive(Debug, PartialEq, Eq, Copy, Clone, PartialOrd, Ord)] | ^^^^^^ error: cannot find macro `write` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:191:9 | 191 | write!(f, "{}", self.as_str()) | ^^^^^ error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:12:3 | 12 | #[derive(Debug, PartialEq, Eq, Copy, Clone)] | ^^^^^^ error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:3:3 | 3 | #[derive(Debug, PartialEq, Eq, Copy, Clone)] | ^^^^^^ error: cannot find macro `write` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:201:9 | 201 | write!(f, "Version({:?}, {:?})", self.0, self.to_mmp()) | ^^^^^ error: cannot find macro `write` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:194:9 | 194 | write!(f, "{}.{}.{}", major, minor, patch) | ^^^^^ error: cannot find attribute `derive` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:4:3 | 4 | #[derive(PartialEq, Eq, Copy, Clone, PartialOrd, Ord)] | ^^^^^^ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:21:22 | 21 | pub fn read() -> Option { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:57:36 | 57 | pub fn parse(version: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:67:30 | 67 | (3, _) | (_, Err(_)) => return None, | ^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:67:48 | 67 | (3, _) | (_, Err(_)) => return None, | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:68:21 | 68 | (_, Ok(v)) => v, | ^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:29:22 | 29 | pub fn read() -> Option { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:56:36 | 56 | pub fn parse(version: &str) -> Option { | ^^^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:67:13 | 67 | None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:22:22 | 22 | pub fn read() -> Option { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:51:33 | 51 | pub fn parse(date: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:55:30 | 55 | (3, _) | (_, Err(_)) => return None, | ^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:55:48 | 55 | (3, _) | (_, Err(_)) => return None, | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:56:21 | 56 | (_, Ok(v)) => v, | ^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:62:20 | 62 | return None; | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:53 | 97 | fn version_and_date_from_rustc_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:60 | 97 | fn version_and_date_from_rustc_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 97 | fn version_and_date_from_rustc_version(s: &str) -> (Option, Option) { | ++++++++ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:69 | 97 | fn version_and_date_from_rustc_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:97:76 | 97 | fn version_and_date_from_rustc_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 97 | fn version_and_date_from_rustc_version(s: &str) -> (Option, Option) { | ++++++++ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:61 | 107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:68 | 107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option, Option) { | ++++++++ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:77 | 107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:107:84 | 107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option, Option) { | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 107 | fn version_and_date_from_rustc_verbose_version(s: &str) -> (Option, Option) { | ++++++++ error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:108:36 | 108 | let (mut version, mut date) = (None, None); | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:108:42 | 108 | let (mut version, mut date) = (None, None); | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:112:13 | 112 | Some("rustc") => { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:117:13 | 117 | Some("release:") => version = split(line), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:118:13 | 118 | Some("commit-date:") if line.ends_with("unknown") => date = None, | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:118:73 | 118 | Some("commit-date:") if line.ends_with("unknown") => date = None, | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:119:13 | 119 | Some("commit-date:") => date = split(line), | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:30 | 128 | fn get_version_and_date() -> Option<(Option, Option)> { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:38 | 128 | fn get_version_and_date() -> Option<(Option, Option)> { | ^^^^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:45 | 128 | fn get_version_and_date() -> Option<(Option, Option)> { | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 128 | fn get_version_and_date() -> Option<(Option, Option)> { | ++++++++ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:54 | 128 | fn get_version_and_date() -> Option<(Option, Option)> { | ^^^^^^ not found in this scope error[E0412]: cannot find type `String` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:128:61 | 128 | fn get_version_and_date() -> Option<(Option, Option)> { | ^^^^^^ not found in this scope | help: you might be missing a type parameter | 128 | fn get_version_and_date() -> Option<(Option, Option)> { | ++++++++ error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:143:20 | 143 | pub fn triple() -> Option<(Version, Channel, Date)> { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:145:9 | 145 | Some((Some(version), Some(date))) => (version, date), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:145:15 | 145 | Some((Some(version), Some(date))) => (version, date), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:145:30 | 145 | Some((Some(version), Some(date))) => (version, date), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:146:21 | 146 | _ => return None | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:151:9 | 151 | Some(version) => match Channel::parse(&version_str) { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:152:13 | 152 | Some(channel) => match Date::parse(&date_str) { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:153:17 | 153 | Some(date) => Some((version, channel, date)), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:154:22 | 154 | _ => None, | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:156:18 | 156 | _ => None, | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:158:14 | 158 | _ => None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:171:39 | 171 | pub fn is_min_date(min_date: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:173:10 | 173 | (Some(rustc_date), Some(min_date)) => Some(rustc_date >= min_date), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:173:28 | 173 | (Some(rustc_date), Some(min_date)) => Some(rustc_date >= min_date), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:174:14 | 174 | _ => None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:187:39 | 187 | pub fn is_max_date(max_date: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:189:10 | 189 | (Some(rustc_date), Some(max_date)) => Some(rustc_date <= max_date), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:189:28 | 189 | (Some(rustc_date), Some(max_date)) => Some(rustc_date <= max_date), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:190:14 | 190 | _ => None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:203:37 | 203 | pub fn is_exact_date(date: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:205:10 | 205 | (Some(rustc_date), Some(date)) => Some(rustc_date == date), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:205:28 | 205 | (Some(rustc_date), Some(date)) => Some(rustc_date == date), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:206:14 | 206 | _ => None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:219:45 | 219 | pub fn is_min_version(min_version: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:221:10 | 221 | (Some(rustc_ver), Some(min_ver)) => Some(rustc_ver >= min_ver), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:221:27 | 221 | (Some(rustc_ver), Some(min_ver)) => Some(rustc_ver >= min_ver), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:222:14 | 222 | _ => None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:235:45 | 235 | pub fn is_max_version(max_version: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:237:10 | 237 | (Some(rustc_ver), Some(max_ver)) => Some(rustc_ver <= max_ver), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:237:27 | 237 | (Some(rustc_ver), Some(max_ver)) => Some(rustc_ver <= max_ver), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:238:14 | 238 | _ => None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:250:43 | 250 | pub fn is_exact_version(version: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:252:10 | 252 | (Some(rustc_ver), Some(version)) => Some(rustc_ver == version), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:252:27 | 252 | (Some(rustc_ver), Some(version)) => Some(rustc_ver == version), | ^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:253:14 | 253 | _ => None | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:269:34 | 269 | pub fn is_feature_flaggable() -> Option { | ^^^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:289:43 | 289 | pub fn supports_feature(feature: &str) -> Option { | ^^^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:291:9 | 291 | Some(true) => { /* continue */ } | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:292:9 | 292 | Some(false) => return Some(false), | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:300:12 | 300 | if let Some((flags, delim)) = env_flags { | ^^^^ not found in this scope error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:309:16 | 309 | if let Some(allow_features) = allow_features.last() { | ^^^^ not found in this scope error[E0433]: failed to resolve: use of undeclared type `String` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:131:28 | 131 | .and_then(|output| String::from_utf8(output.stdout).ok()) | ^^^^^^ use of undeclared type `String` error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\version.rs:73:9 | 73 | Some(Version::from_mmp(maj, min, patch)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:59:13 | 59 | Some(Channel(Kind::Dev)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:61:13 | 61 | Some(Channel(Kind::Nightly)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:63:13 | 63 | Some(Channel(Kind::Beta)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\channel.rs:65:13 | 65 | Some(Channel(Kind::Stable)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\date.rs:65:9 | 65 | Some(Date::from_ymd(year, month as u8, day as u8)) | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:153:31 | 153 | Some(date) => Some((version, channel, date)), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:173:47 | 173 | (Some(rustc_date), Some(min_date)) => Some(rustc_date >= min_date), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:189:47 | 189 | (Some(rustc_date), Some(max_date)) => Some(rustc_date <= max_date), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:205:43 | 205 | (Some(rustc_date), Some(date)) => Some(rustc_date == date), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:221:45 | 221 | (Some(rustc_ver), Some(min_ver)) => Some(rustc_ver >= min_ver), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:237:45 | 237 | (Some(rustc_ver), Some(max_ver)) => Some(rustc_ver <= max_ver), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:252:45 | 252 | (Some(rustc_ver), Some(version)) => Some(rustc_ver == version), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:292:31 | 292 | Some(false) => return Some(false), | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:310:20 | 310 | return Some(allow_features.split(',').any(|f| f.trim() == feature)); | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\version_check-0.9.4\src\lib.rs:316:5 | 316 | Some(true) | ^^^^ not found in this scope Some errors have detailed explanations: E0412, E0425, E0433, E0463, E0531. error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.0\build.rs:9:5 | 9 | println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display()); | ^^^^^^^ error: could not compile `version_check` (lib) due to 101 previous errors error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.0\build.rs:2:18 | 2 | let target = std::env::var("TARGET").unwrap(); | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.0\build.rs:7:15 | 7 | let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); | ^^^ can't find crate error: could not compile `windows_x86_64_msvc` (build script) due to 5 previous errors error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:1:5 | 1 | use std::env; | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:2:5 | 2 | use std::process::Command; | ^^^ can't find crate error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:3:5 | 3 | use std::str; | ^^^ can't find crate error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:31:9 | 31 | println!("cargo:rustc-cfg=syn_disable_nightly_tests"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:27:9 | 27 | println!("cargo:rustc-cfg=syn_no_negative_literal_parse"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:23:9 | 23 | println!("cargo:rustc-cfg=syn_no_non_exhaustive"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:19:9 | 19 | println!("cargo:rustc-cfg=syn_no_const_vec_new"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:15:9 | 15 | println!("cargo:rustc-cfg=syn_omit_await_from_token_macro"); | ^^^^^^^ error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:10:9 | 10 | Some(compiler) => compiler, | ^^^^ not found in this scope error[E0412]: cannot find type `Option` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:40:23 | 40 | fn rustc_version() -> Option { | ^^^^^^ not found in this scope error[E0425]: cannot find value `None` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:46:16 | 46 | return None; | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:45:25 | 45 | if pieces.next() != Some("rustc 1") { | ^^^^ not found in this scope error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\syn-1.0.109\build.rs:50:5 | 50 | Some(Compiler { minor, nightly }) | ^^^^ not found in this scope error: could not compile `syn` (build script) due to 15 previous errors error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\parking_lot_core-0.9.9\build.rs:8:9 | 8 | println!("cargo:rustc-cfg=tsan_enabled"); | ^^^^^^^ error: cannot find macro `println` in this scope --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\parking_lot_core-0.9.9\build.rs:5:5 | 5 | println!("cargo:rerun-if-changed=build.rs"); | ^^^^^^^ error[E0463]: can't find crate for `std` --> C:\Users\w8-62\.cargo\registry\src\index.crates.io-6f17d22bba15001f\parking_lot_core-0.9.9\build.rs:6:25 | 6 | let santizer_list = std::env::var("CARGO_CFG_SANITIZE").unwrap_or_default(); | ^^^ can't find crate error: could not compile `parking_lot_core` (build script) due to 5 previous errors```
seritools commented 9 months ago

@LordRibblesdale Thank you, I just fixed it in v3, I forgot to add x86_64-pc-windows-msvc (regular target) to the list of the supported targets. Without it, build scripts and such don't compile (since they miss std).

Let me know if it works!

LordRibblesdale commented 9 months ago

Hello! Yes, v3 is working well for compilation! Thank you :) I've got only this error while linking: note: LINK : fatal error LNK1181: cannot open input file 'windows.0.48.5.lib'

``` Compiling proc-macro2 v1.0.71 Compiling unicode-ident v1.0.12 Compiling autocfg v1.1.0 Compiling windows_x86_64_msvc v0.48.5 Compiling serde v1.0.193 Compiling windows_x86_64_msvc v0.52.0 Compiling version_check v0.9.4 Compiling syn v1.0.109 Compiling log v0.4.20 Compiling parking_lot_core v0.9.9 Compiling khronos_api v3.1.0 Compiling cfg_aliases v0.1.1 Compiling anyhow v1.0.77 Compiling either v1.9.0 Compiling winapi v0.3.9 Compiling lock_api v0.4.11 Compiling num-traits v0.2.17 Compiling xml-rs v0.8.19 Compiling ahash v0.8.6 Compiling ttf-parser v0.20.0 Compiling unicase v2.7.0 Compiling gl_generator v0.14.0 Compiling windows-targets v0.48.5 Compiling itertools v0.11.0 Compiling windows-targets v0.52.0 Compiling paste v1.0.14 Compiling zerocopy v0.7.32 Compiling quote v1.0.33 Compiling bitflags v1.3.2 Compiling windows-targets v0.42.2 Compiling windows-sys v0.48.0 Compiling windows-sys v0.52.0 Compiling ab_glyph_rasterizer v0.1.8 Compiling syn v2.0.43 Compiling parking_lot v0.12.1 Compiling windows-sys v0.45.0 Compiling owned_ttf_parser v0.20.0 Compiling cfg-if v1.0.0 Compiling libc v0.2.151 Compiling rustix v0.38.28 Compiling nohash-hasher v0.2.0 Compiling tinyvec_macros v0.1.1 Compiling ab_glyph v0.2.23 Compiling cc v1.0.83 Compiling prettyplease v0.2.15 Compiling glob v0.3.1 Compiling raw-window-handle v0.5.2 Compiling clang-sys v1.6.1 Compiling errno v0.3.8 Compiling tinyvec v1.6.0 Compiling backtrace v0.3.69 Compiling num-integer v0.1.45 Compiling winit v0.28.7 Compiling unicode-xid v0.2.4 Compiling regex-syntax v0.8.2 Compiling bitflags v2.4.1 Compiling thiserror v1.0.51 Compiling crc32fast v1.3.2 Compiling bytes v1.5.0 Compiling simd-adler32 v0.3.7 Compiling failure_derive v0.1.8 Compiling unicode-normalization v0.1.22 Compiling regex-automata v0.4.3 Compiling serde_derive v1.0.193 Compiling bytemuck_derive v1.5.0 Compiling enumn v0.1.12 Compiling prost-derive v0.12.3 Compiling windows-implement v0.48.0 Compiling windows-interface v0.48.0 Compiling thiserror-impl v1.0.51 Compiling synstructure v0.12.6 Compiling home v0.5.9 Compiling glutin_egl_sys v0.5.1 Compiling glutin_wgl_sys v0.4.0 Compiling num-rational v0.4.1 Compiling slab v0.4.9 Compiling bytemuck v1.14.0 Compiling instant v0.1.12 Compiling getrandom v0.2.11 Compiling adler v1.0.2 Compiling futures-sink v0.3.30 Compiling hashbrown v0.14.3 Compiling rustc-demangle v0.1.23 Compiling heck v0.4.1 Compiling str-buf v1.0.6 Compiling minimal-lexical v0.2.1 Compiling percent-encoding v2.3.1 Compiling futures-core v0.3.30 Compiling equivalent v1.0.1 Compiling memchr v2.6.4 Compiling unicode-bidi v0.3.14 Compiling once_cell v1.19.0 Compiling pin-project-lite v0.2.13 Compiling form_urlencoded v1.2.1 Compiling error-code v2.3.1 Compiling which v4.4.2 Compiling prost v0.12.3 Compiling indexmap v2.1.0 Compiling libloading v0.7.4 Compiling nom v7.1.3 Compiling idna v0.5.0 Compiling miniz_oxide v0.7.1 Compiling rand_core v0.6.4 Compiling regex v1.10.2 Compiling windows v0.48.0 Compiling serde_test v1.0.176 Compiling memoffset v0.6.5 Compiling glutin v0.30.10 Compiling utf8parse v0.2.1 Compiling arrayvec v0.7.4 Compiling fastrand v2.0.1 Compiling crossbeam-utils v0.8.18 Compiling fixedbitset v0.4.2 Compiling ppv-lite86 v0.2.17 Compiling anstyle v1.0.4 Compiling bindgen v0.69.1 Compiling futures-io v0.3.30 Compiling petgraph v0.6.4 Compiling anstyle-wincon v3.0.2 Compiling linear-map v1.2.0 Compiling rand_chacha v0.3.1 Compiling tempfile v3.8.1 Compiling anstyle-parse v0.2.3 Compiling failure v0.1.8 Compiling flate2 v1.0.28 Compiling cexpr v0.6.0 Compiling mime_guess v2.0.4 Compiling url v2.5.0 Compiling accesskit v0.11.2 Compiling ecolor v0.23.0 Compiling emath v0.23.0 Compiling prost-types v0.12.3 Compiling clipboard-win v4.5.0 Compiling safe_arch v0.7.1 Compiling anstyle-query v1.0.2 Compiling toml v0.4.10 Compiling epaint v0.23.0 Compiling futures-macro v0.3.30 Compiling tokio-macros v2.2.0 Compiling fdeflate v0.3.1 Compiling socket2 v0.5.5 Compiling mio v0.8.10 Compiling matrixmultiply v0.3.8 Compiling glutin-winit v0.3.0 Compiling lazycell v1.3.0 Compiling typenum v1.17.0 Compiling peeking_take_while v0.1.2 Compiling shlex v1.2.0 Compiling pin-utils v0.1.0 Compiling rustc-hash v1.1.0 Compiling colorchoice v1.0.0 Compiling num_cpus v1.16.0 Compiling lazy_static v1.4.0 Compiling multimap v0.8.3 Compiling async-trait v0.1.75 Compiling futures-task v0.3.30 Compiling accesskit_consumer v0.15.2 Compiling prost-build v0.12.3 Compiling tokio v1.35.1 Compiling egui v0.23.0 Compiling futures-util v0.3.30 Compiling anstream v0.6.5 Compiling config_struct v0.5.0 Compiling png v0.17.10 Compiling wide v0.7.13 Compiling arboard v3.3.0 Compiling webbrowser v0.8.12 Compiling toml_datetime v0.6.5 Compiling num-complex v0.4.4 Compiling serde_spanned v0.6.5 Compiling rand v0.8.5 Compiling enum-map-derive v0.17.0 Compiling is-terminal v0.4.9 Compiling approx v0.5.1 Compiling rawpointer v0.2.1 Compiling mime v0.3.17 Compiling rfd v0.12.1 Compiling web-time v0.2.4 Compiling byteorder v1.5.0 Compiling glow v0.12.3 Compiling strsim v0.10.0 Compiling clap_lex v0.6.0 Compiling color_quant v1.1.0 Compiling winnow v0.5.30 Compiling colored v1.9.4 Compiling image v0.24.7 Compiling clap_builder v4.4.12 Compiling tokio-util v0.7.10 Compiling asynchronous-codec v0.7.0 Compiling uuid v1.6.1 Compiling enum-map v2.7.3 Compiling egui_glow v0.23.0 Compiling simba v0.8.1 Compiling crossbeam-queue v0.3.10 Compiling accesskit_windows v0.14.3 Compiling toml_edit v0.21.0 Compiling project v2.2.2 (D:\Project) Compiling accesskit_winit v0.14.4 Compiling egui-winit v0.23.0 Compiling chrono v0.4.31 Compiling dashmap v5.5.3 Compiling futures-channel v0.3.30 Compiling clap_derive v4.4.7 Compiling nalgebra-macros v0.2.1 Compiling static_assertions v1.1.0 Compiling eframe v0.23.0 Compiling zeromq v0.3.4 Compiling fern v0.6.2 Compiling toml v0.8.8 Compiling egui_extras v0.23.0 Compiling clap v4.4.12 Compiling egui_plot v0.23.0 Compiling nalgebra v0.32.3 error: linking with `link.exe` failed: exit code: 1181 | = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\w8-62\\AppData\\Local\\Temp\\rustcEXUz6J\\symbols.o" "D:\\Project\\target\\x86_64-rust9x-windows-msvc\\production\\deps\\build1.build1.7f6594b1f1f9f92f-cgu.07.rcgu.o" "/LIBPATH:D:\\Project\\target\\x86_64-rust9x-windows-msvc\\production\\deps" "/LIBPATH:D:\\Project\\target\\production\\deps" "/LIBPATH:C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\atlmfc\\lib\\x64" "/LIBPATH:abc/data_1" "/LIBPATH:abc/data_1/" "/LIBPATH:E:\\Rust\\rust9x\\lib\\rustlib\\x86_64-rust9x-windows-msvc\\lib" "C:\\Users\\w8-62\\AppData\\Local\\Temp\\rustcEXUz6J\\libproject-f360271cdfc4803d.rlib" "C:\\Users\\w8-62\\AppData\\Local\\Temp\\rustcEXUz6J\\libcompiler_builtins-c560e1614b9503da.rlib" "bcrypt.lib" "advapi32.lib" "ntdll.lib" "windows.0.48.5.lib" "windows.0.48.5.lib" "opengl32.lib" "shlwapi.lib" "legacy_stdio_definitions.lib" "windows.0.48.5.lib" "advapi32.lib" "cfgmgr32.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "opengl32.lib" "shell32.lib" "shlwapi.lib" "synchronization.lib" "user32.lib" "winspool.lib" "windows.lib" "windows.0.52.0.lib" "windows.0.48.5.lib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ntdll.lib" "kernel32.lib" "libcmt.lib" "/NXCOMPAT" "/LIBPATH:E:\\Rust\\rust9x\\lib\\rustlib\\x86_64-rust9x-windows-msvc\\lib" "/OUT:D:\\Project\\target\\x86_64-rust9x-windows-msvc\\production\\deps\\build1.exe" "/OPT:REF,ICF" "/DEBUG:NONE" "/LIBPATH:E:\\Rust\\libunicows-1.1.2-msvc6" "/nod:kernel32.lib" "/nod:advapi32.lib" "/nod:user32.lib" "/nod:gdi32.lib" "/nod:shell32.lib" "/nod:comdlg32.lib" "/nod:version.lib" "/nod:mpr.lib" "/nod:rasapi32.lib" "/nod:winmm.lib" "/nod:winspool.lib" "/nod:vfw32.lib" "/nod:secur32.lib" "/nod:oleacc.lib" "/nod:oledlg.lib" "/nod:sensapi.lib" "unicows.lib" "kernel32.lib" "advapi32.lib" "user32.lib" "gdi32.lib" "shell32.lib" "comdlg32.lib" "version.lib" "mpr.lib" "rasapi32.lib" "winmm.lib" "winspool.lib" "vfw32.lib" "secur32.lib" "oleacc.lib" "oledlg.lib" "sensapi.lib" = note: LINK : fatal error LNK1181: cannot open input file 'windows.0.48.5.lib' error: could not compile `project` (bin "build1") due to previous error ```
seritools commented 9 months ago

@LordRibblesdale Yeah, windows-rs needs a patch to get working, as it checks for the specific target triple. The easiest way to quickly get it working is to remove these lines: https://github.com/microsoft/windows-rs/blob/6f04b5a50bcc60b062849e94398df8f22ecec7b4/crates/targets/x86_64_msvc/build.rs#L2-L5

I'll also fix this and 9x/ME compat as far as possible in #16.

seritools commented 9 months ago

@LordRibblesdale Check out this branch: https://github.com/rust9x/windows-rs/tree/rust9x-windows-0.52.0-nt Should be easy to backport if you need it for 0.48.5 as well 👍

LordRibblesdale commented 9 months ago

Thanks for the comments! I've tried both attempts but, when editing build.rs files (I have in the project windows_x86_64_msvc 0.42.2, 0.48.5 and 0.52.0, I've tried first the 0.48.5, then all of them), I have the following error: = note: LINK : fatal error LNK1181: cannot open input file 'windows.lib'

I've also tried to apply a patch like the following:

[patch.crates-io]
windows_x86_64_msvc = { git = "https://github.com/rust9x/windows-rs", branch = "rust9x-windows-0.52.0-nt" }

but without success, nothing changed.

I've tried with the deprecated "replace" TOML entry, as the following:

[replace]
"windows_x86_64_msvc:0.48.5" = {git = "https://github.com/rust9x/windows-rs", branch = "rust9x-windows-0.52.0-nt"}

and I've got a different error (for version matching):

stdout :     Updating git repository `https://github.com/rust9x/windows-rs`
error: failed to get `windows_x86_64_msvc` as a dependency of package `windows-targets v0.48.5`
    ... which satisfies dependency `windows-targets = "^0.48"` (locked to 0.48.5) of package `chrono v0.4.31`
    ... which satisfies dependency `chrono = "^0.4.31"` (locked to 0.4.31) of package `project v2.2.2 (D:\Project)`

Caused by:
  no matching package for override `https://github.com/rust-lang/crates.io-index#windows_x86_64_msvc@0.48.5` found
  location searched: https://github.com/rust9x/windows-rs?branch=rust9x-windows-0.52.0-nt
  version required: =0.48.5
LordRibblesdale commented 9 months ago

Obviously I'm trying to compile a personal project, but right now I'll try your sample application right now (which compiles)

LordRibblesdale commented 9 months ago

PXL_20240105_114134624.jpg

seritools commented 9 months ago

@LordRibblesdale try this:

[patch.crates-io]
windows = { git = 'https://github.com/rust9x/windows-rs', branch = "rust9x-windows-0.52.0-nt" }
windows-sys = { git = 'https://github.com/rust9x/windows-rs', branch = "rust9x-windows-0.52.0-nt" }

they should automatically pull in the patched subcrates as well.

Otherwise, https://github.com/microsoft/windows-rs/pull/2774 was merged, so the next official build should work as well :)

LordRibblesdale commented 9 months ago

Right now it didn't work either. I'll just wait for an update of the dependencies and test again. Meanwhile I'll try in the near future to test other combinations in order to force the latest version

seritools commented 9 months ago

@LordRibblesdale a new official build would effectively run into the same problems I think. I've just tested it as well on my project at it seems to work fine. Maybe your dependencies have more/other versions of windows-rs in there? check cargo tree to find out.

seritools commented 9 months ago

Another way to brute-force it into making it work is to use -Zlink-native-libraries=no. This prevents rust from adding any libs to the linker command line. You'll have to manually link libcmt.lib (for statically linked runtime) and all other libraries you or the rust stdlib needs, but it'll prevent adding that stray windows.lib (probably from an old windows-rs version).