Skip to content

Commit bfe9919

Browse files
who knows
1 parent 4fb721a commit bfe9919

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.cargo/config.toml

+16
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ rustflags = [
2020
"-Clink-arg=/DEFAULTLIB:libucrt",
2121
"-Clink-arg=/NODEFAULTLIB:msvcrt",
2222
"-Clink-arg=/NODEFAULTLIB:msvcprt"
23+
"-Clink-arg=/NODEFAULTLIB:libcmt.dll",
24+
"-Clink-arg=/NODEFAULTLIB:msvcrtd",
25+
"-Clink-arg=/NODEFAULTLIB:msvcprtd",
26+
"-Ctarget-feature=+crt-static",
27+
"-Zpanic-abort-tests",
28+
"-Clto=yes"
2329
]
2430

2531
[target.x86_64-pc-windows-msvc.env]
@@ -28,6 +34,16 @@ ROCKSDB_LIB_DIR = ""
2834
LIBROCKSDB_STATIC = "1"
2935
ROCKSDB_STATIC_LIB = "1"
3036
VCPKG_ALL_STATIC = "1"
37+
# Existing vars...
38+
VCPKGRS_DYNAMIC = "0"
39+
RUSTFLAGS = "-Ctarget-feature=+crt-static"
40+
# For native-tls
41+
OPENSSL_STATIC = "1"
42+
OPENSSL_NO_VENDOR = "0"
43+
# For any dependencies using cmake
44+
CMAKE_STATIC_VCRT = "True"
45+
# For any dependencies using pkg-config
46+
PKG_CONFIG_ALL_STATIC = "1"
3147

3248
[target.'cfg(all())']
3349
rustflags = ["--cfg", "tokio_unstable"]

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ mime2ext = "0.1.52"
8383
fastrace = { version = "0.7", features = [ "enable" ] }
8484
must-let = { git = "https://github.com/sujayakar/must-let", rev = "5b487d78db235e396e61dd03ce261ced0eafff9d" }
8585
mysql_async = { git = "https://github.com/get-convex/mysql_async", rev = "44138cf6422504dc60691957ba3026e3297ab77e" }
86-
native-tls = "^0.2.10"
86+
native-tls = { version = "^0.2.10"
8787
num_cpus = "1.16.0"
8888
oauth2 = "4.4.2"
8989
openidconnect = { git = "https://github.com/get-convex/openidconnect-rs", rev = "eb55e703f0c0585e3ed796f48e3ed9e96b56d31d", features = [ "accept-rfc3339-timestamps" ] }

0 commit comments

Comments
 (0)