Skip to content

Commit

Permalink
add static vc; pin toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
mxve committed Jan 29, 2025
1 parent 226c01a commit a6f3881
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 25 deletions.
85 changes: 61 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "alterware-launcher"
version = "0.1.0"
edition = "2021"
build = "build.rs"

[dependencies]
blake3 = "1.5"
Expand All @@ -20,4 +21,7 @@ strum_macros = "0.26"
winapi = { version = "0.3", features = ["d3d11"] }

[target.'cfg(unix)'.dependencies]
openssl = { version = "0.10", default-features = false, features = ["vendored"] }
openssl = { version = "0.10", default-features = false, features = ["vendored"] }

[build-dependencies]
static_vcruntime = "2.0"
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
static_vcruntime::metabuild();
}
}
3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "1.77.2"
targets = ["i686-pc-windows-msvc"]

0 comments on commit a6f3881

Please sign in to comment.