PS C:\temp> # Create a directory for prerequesites PS C:\temp> mkdir _prereqs Directory: C:\temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 4/9/2023 10:25 PM _prereqs PS C:\temp> PS C:\temp> #Download and silently install Git PS C:\temp> $GitDownloadUrl = "https://github.com/git-for-windows/git/releases/download/v2.40.0.windows.1/Git-2.40.0-64-bit.exe" PS C:\temp> $GitInstallerName = '.\_prereqs\' + $GitDownloadUrl.Split('/')[$_.length-1] PS C:\temp> Invoke-WebRequest -Uri $GitDownloadUrl -OutFile $GitInstallerName PS C:\temp> Start-Process $GitInstallerName -ArgumentList "/verysilent /suppressmsgboxes /norestart" -Wait PS C:\temp> PS C:\temp> #Download and silently install Visual Studio Redistributable c++ 2015-2022 PS C:\temp> $VcRedistDownloadUrl = "https://aka.ms/vs/17/release/vc_redist.x64.exe" PS C:\temp> $VcRedistInstallerName = '.\_prereqs\' + $VcRedistDownloadUrl.Split('/')[$_.length-1] PS C:\temp> Invoke-WebRequest -Uri $VcRedistDownloadUrl -OutFile $VcRedistInstallerName PS C:\temp> Start-Process $VcRedistInstallerName -ArgumentList "/install /quiet /norestart" -Wait PS C:\temp> PS C:\temp> #Download and silently install Visual Studio BuildTools PS C:\temp> #$VcBuildToolsDownloadUrl = "https://aka.ms/vs/17/release/vs_BuildTools.exe" PS C:\temp> #$VcBuildToolsInstallerName = '.\_prereqs\' + $VcBuildToolsDownloadUrl.Split('/')[$_.length-1] PS C:\temp> #Invoke-WebRequest -Uri $VcBuildToolsDownloadUrl -OutFile $VcBuildToolsInstallerName PS C:\temp> #Start-Process $VcBuildToolsInstallerName -ArgumentList "--quiet --norestart" -Wait PS C:\temp> PS C:\temp> #Download and verbosely install Rust PS C:\temp> $RustDownloadUrl = "https://win.rustup.rs" PS C:\temp> $RustInstallerName = ".\_prereqs\rustup-init.exe" PS C:\temp> Invoke-WebRequest -Uri $RustDownloadUrl -OutFile $RustInstallerName PS C:\temp> Start-Process $RustInstallerName -ArgumentList "-q -y" -NoNewWindow -Wait warning: installing msvc toolchain without its prerequisites info: profile set to 'default' info: default host triple is x86_64-pc-windows-msvc info: syncing channel updates for 'stable-x86_64-pc-windows-msvc' info: latest update on 2023-03-28, rust version 1.68.2 (9eb3afe9e 2023-03-27) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' info: downloading component 'rust-std' info: downloading component 'rustc' info: downloading component 'rustfmt' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' info: installing component 'rust-std' info: installing component 'rustc' info: installing component 'rustfmt' info: default toolchain set to 'stable-x86_64-pc-windows-msvc' stable-x86_64-pc-windows-msvc installed - rustc 1.68.2 (9eb3afe9e 2023-03-27) Rust is installed now. Great! To get started you may need to restart your current shell. This would reload its PATH environment variable to include Cargo's bin directory (%USERPROFILE%\.cargo\bin). PS C:\temp> PS C:\temp> # Clone the RGB repository and navigate into it PS C:\temp> Start-Process 'C:\Program Files\Git\cmd\git.exe' -ArgumentList "clone https://github.com/RGB-WG/rgb" -NoNewWindow -wait Cloning into 'rgb'... remote: Enumerating objects: 381, done. remote: Counting objects: 100% (381/381), done. remote: Compressing objects: 100% (205/205), done. remote: Total 381 (delta 189), reused 330 (delta 139), pack-reused 0Receiving objects: 93% (355/381) Receiving objects: 100% (381/381), 117.96 KiB | 1.44 MiB/s, done. Resolving deltas: 100% (189/189), done. PS C:\temp> cd rgb PS C:\temp\rgb> PS C:\temp\rgb> # Install all features of the RGB project using Cargo PS C:\temp\rgb> $CargoPath = "$($env:USERPROFILE)\.cargo\bin\cargo.exe" PS C:\temp\rgb> Start-Process $CargoPath -ArgumentList "install --path . --all-features" -NoNewWindow -Wait Installing rgb-contracts v0.10.0-rc.1 (C:\temp\rgb) Updating git repository `https://github.com/RCasatta/rust-electrum-client` Updating crates.io index Downloaded aho-corasick v0.7.20 Downloaded memchr v2.5.0 Downloaded dirs v5.0.0 Downloaded base58 v0.2.0 Downloaded syn v2.0.13 Downloaded unicode-ident v1.0.8 Downloaded winapi-util v0.1.5 Downloaded secp256k1 v0.24.3 Downloaded serde_str_helpers v0.1.2 Downloaded single_use_seals v0.10.0 Downloaded strict_encoding_derive v2.0.0 Downloaded stringly_conversions v0.1.1 Downloaded ident_case v1.0.1 Downloaded secp256k1-zkp v0.7.0 Downloaded rgb-core v0.10.0 Downloaded serde_derive v1.0.159 Downloaded spin v0.5.2 Downloaded subtle v2.4.1 Downloaded serde_spanned v0.6.1 Downloaded strsim v0.10.0 Downloaded ryu v1.0.13 Downloaded clap_derive v4.2.0 Downloaded toml_datetime v0.6.1 Downloaded time-core v0.1.0 Downloaded clap_builder v4.2.1 Downloaded chrono v0.4.24 Downloaded utf8parse v0.2.1 Downloaded webpki v0.22.0 Downloaded windows-targets v0.48.0 Downloaded windows-targets v0.42.2 Downloaded webpki-roots v0.22.6 Downloaded unsafe-libyaml v0.2.8 Downloaded winnow v0.4.1 Downloaded rand_chacha v0.3.1 Downloaded termcolor v1.2.0 Downloaded toml v0.5.11 Downloaded toml v0.7.3 Downloaded time-macros v0.2.8 Downloaded version_check v0.9.4 Downloaded syn v1.0.109 Downloaded serde_yaml v0.9.21 Downloaded serde_with v2.3.2 Downloaded autocfg v1.1.0 Downloaded amplify v4.0.0-beta.22 Downloaded amplify_syn v2.0.0-beta.3 Downloaded bitcoin-private v0.1.0 Downloaded arrayref v0.3.7 Downloaded bech32 v0.9.1 Downloaded block-buffer v0.10.4 Downloaded bp-core v0.10.0 Downloaded baid58 v0.3.1 Downloaded anstyle-parse v0.1.1 Downloaded base64 v0.21.0 Downloaded winapi v0.3.9 Downloaded constant_time_eq v0.2.5 Downloaded concolor-query v0.3.3 Downloaded env_logger v0.10.0 Downloaded byteorder v1.4.3 Downloaded concolor-override v1.0.0 Downloaded digest v0.10.6 Downloaded commit_verify v0.10.0 Downloaded cc v1.0.79 Downloaded darling_macro v0.14.4 Downloaded clap_lex v0.4.1 Downloaded darling_core v0.14.4 Downloaded windows_x86_64_msvc v0.42.2 Downloaded bitcoin v0.30.0 Downloaded aluvm v0.10.0 Downloaded windows_x86_64_msvc v0.48.0 Downloaded crypto-common v0.1.6 Downloaded clap v4.2.1 Downloaded bp-seals v0.10.0 Downloaded bp-dbc v0.10.0 Downloaded ascii v1.1.0 Downloaded base64 v0.13.1 Downloaded arrayvec v0.7.2 Downloaded anstream v0.2.6 Downloaded amplify_num v0.5.0 Downloaded bitcoin_hashes v0.12.0 Downloaded anstyle-wincon v0.2.0 Downloaded secp256k1-sys v0.8.1 Downloaded amplify_apfloat v0.2.0 Downloaded amplify_derive v4.0.0-alpha.6 Downloaded secp256k1 v0.27.0 Downloaded windows-sys v0.48.0 Downloaded typenum v1.16.0 Downloaded time v0.3.20 Downloaded windows-sys v0.45.0 Downloaded serde_json v1.0.95 Downloaded secp256k1-sys v0.6.1 Downloaded secp256k1-zkp-sys v0.7.0 Downloaded regex v1.7.3 Downloaded rand_core v0.6.4 Downloaded ring v0.16.20 Downloaded serde_with_macros v2.3.2 Downloaded rand v0.8.5 Downloaded shellexpand v3.1.0 Downloaded toml_edit v0.19.8 Downloaded untrusted v0.7.1 Downloaded rustls v0.20.8 Downloaded regex-syntax v0.6.29 Downloaded cfg-if v1.0.0 Downloaded serde v1.0.159 Downloaded sct v0.7.0 Downloaded ppv-lite86 v0.2.17 Downloaded io-lifetimes v1.0.10 Downloaded half v2.2.1 Downloaded once_cell v1.17.1 Downloaded paste v1.0.12 Downloaded num-integer v0.1.45 Downloaded mime v0.3.17 Downloaded blake3 v1.3.3 Downloaded darling v0.14.4 Downloaded strict_types v1.0.0 Downloaded strict_encoding v2.0.1 Downloaded rgb-wallet v0.10.0-rc.1 Downloaded hex_lit v0.1.1 Downloaded fluent-uri v0.1.4 Downloaded bp-primitives v0.10.0 Downloaded rgb-std v0.10.0-rc.2 Downloaded num-traits v0.2.15 Downloaded log v0.4.17 Downloaded itoa v1.0.6 Downloaded is-terminal v0.4.7 Downloaded hex v0.4.3 Downloaded heck v0.4.1 Downloaded hashbrown v0.12.3 Downloaded mnemonic v1.0.1 Downloaded getrandom v0.2.9 Downloaded dirs-sys v0.4.0 Downloaded generic-array v0.14.7 Downloaded quote v1.0.26 Downloaded proc-macro2 v1.0.56 Downloaded indexmap v1.9.3 Downloaded humantime v2.1.0 Downloaded anstyle v0.3.5 Downloaded lazy_static v1.4.0 Downloaded fnv v1.0.7 Downloaded bitflags v1.3.2 Downloaded 139 crates (26.9 MB) in 6.89s (largest was `ring` at 5.1 MB) Compiling proc-macro2 v1.0.56 Compiling quote v1.0.26 Compiling unicode-ident v1.0.8 Compiling cc v1.0.79 Compiling serde_derive v1.0.159 Compiling serde v1.0.159 Compiling cfg-if v1.0.0 Compiling syn v1.0.109 Compiling autocfg v1.1.0 Compiling bitflags v1.3.2 Compiling hashbrown v0.12.3 Compiling getrandom v0.2.9 Compiling typenum v1.16.0 Compiling version_check v0.9.4 Compiling rand_core v0.6.4 error: linker `link.exe` not found | = note: program not found note: the msvc targets depend on the msvc linker but `link.exe` was not found note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option. note: VS Code is a different product, and is not sufficient. error: could not compile `serde` due to previous error warning: build failed, waiting for other jobs to finish... error: could not compile `serde_derive` due to previous error error: could not compile `quote` due to previous error error: could not compile `syn` due to previous error error: could not compile `proc-macro2` due to previous error error: could not compile `typenum` due to previous error error: failed to compile `rgb-contracts v0.10.0-rc.1 (C:\temp\rgb)`, intermediate artifacts can be found at `C:\temp\rgb\target` PS C:\temp\rgb> PS C:\temp\rgb>