Browse Source

crt-static

elilchen 3 years ago
parent
commit
388ae586ec
8 changed files with 17 additions and 21 deletions
  1. 8 0
      .cargo/config.toml
  2. 0 7
      Cargo.lock
  3. 0 1
      Cargo.toml
  4. 0 3
      build.rs
  5. 8 0
      ui/.cargo/config.toml
  6. 1 8
      ui/Cargo.lock
  7. 0 1
      ui/Cargo.toml
  8. 0 1
      ui/build.rs

+ 8 - 0
.cargo/config.toml

@@ -0,0 +1,8 @@
1
+[target.x86_64-pc-windows-msvc]
2
+rustflags = ["-Ctarget-feature=+crt-static"]
3
+[target.i686-pc-windows-msvc]
4
+rustflags = ["-Ctarget-feature=+crt-static"]
5
+[target.'cfg(target_os="macos")']
6
+rustflags = [
7
+    "-C", "link-args=-sectcreate __CGPreLoginApp __cgpreloginapp /dev/null",
8
+]

+ 0 - 7
Cargo.lock

@@ -816,7 +816,6 @@ dependencies = [
816 816
  "serde_json",
817 817
  "sodiumoxide",
818 818
  "sqlx",
819
- "static_vcruntime",
820 819
  "tokio-tungstenite",
821 820
  "tower-http",
822 821
  "tungstenite",
@@ -2093,12 +2092,6 @@ version = "1.1.0"
2093 2092
 source = "registry+https://github.com/rust-lang/crates.io-index"
2094 2093
 checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
2095 2094
 
2096
-[[package]]
2097
-name = "static_vcruntime"
2098
-version = "2.0.0"
2099
-source = "registry+https://github.com/rust-lang/crates.io-index"
2100
-checksum = "954e3e877803def9dc46075bf4060147c55cd70db97873077232eae0269dc89b"
2101
-
2102 2095
 [[package]]
2103 2096
 name = "stringprep"
2104 2097
 version = "0.1.2"

+ 0 - 1
Cargo.toml

@@ -54,7 +54,6 @@ ping = "0.4.0"
54 54
 
55 55
 [build-dependencies]
56 56
 hbb_common = { path = "libs/hbb_common" }
57
-static_vcruntime = "2.0"
58 57
 
59 58
 [workspace]
60 59
 members = ["libs/hbb_common"]

+ 0 - 3
build.rs

@@ -1,6 +1,3 @@
1 1
 fn main() {
2 2
     hbb_common::gen_version();
3
-    if cfg!(target_os = "windows") {
4
-        static_vcruntime::metabuild();
5
-    }
6 3
 }

+ 8 - 0
ui/.cargo/config.toml

@@ -0,0 +1,8 @@
1
+[target.x86_64-pc-windows-msvc]
2
+rustflags = ["-Ctarget-feature=+crt-static"]
3
+[target.i686-pc-windows-msvc]
4
+rustflags = ["-Ctarget-feature=+crt-static"]
5
+[target.'cfg(target_os="macos")']
6
+rustflags = [
7
+    "-C", "link-args=-sectcreate __CGPreLoginApp __cgpreloginapp /dev/null",
8
+]

+ 1 - 8
ui/Cargo.lock

@@ -2315,7 +2315,7 @@ dependencies = [
2315 2315
 
2316 2316
 [[package]]
2317 2317
 name = "rustdesk_server"
2318
-version = "0.1.1"
2318
+version = "0.1.2"
2319 2319
 dependencies = [
2320 2320
  "async-std",
2321 2321
  "crossbeam-channel",
@@ -2324,7 +2324,6 @@ dependencies = [
2324 2324
  "once_cell",
2325 2325
  "serde",
2326 2326
  "serde_json",
2327
- "static_vcruntime",
2328 2327
  "tauri",
2329 2328
  "tauri-build",
2330 2329
  "windows-service",
@@ -2626,12 +2625,6 @@ dependencies = [
2626 2625
  "loom",
2627 2626
 ]
2628 2627
 
2629
-[[package]]
2630
-name = "static_vcruntime"
2631
-version = "2.0.0"
2632
-source = "registry+https://github.com/rust-lang/crates.io-index"
2633
-checksum = "954e3e877803def9dc46075bf4060147c55cd70db97873077232eae0269dc89b"
2634
-
2635 2628
 [[package]]
2636 2629
 name = "string_cache"
2637 2630
 version = "0.8.4"

+ 0 - 1
ui/Cargo.toml

@@ -8,7 +8,6 @@ edition = "2021"
8 8
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9 9
 
10 10
 [build-dependencies]
11
-static_vcruntime = "2.0"
12 11
 tauri-build = { version = "1.2", features = [] }
13 12
 winres = "0.1"
14 13
 

+ 0 - 1
ui/build.rs

@@ -17,6 +17,5 @@ fn main() {
17 17
 "#,
18 18
         );
19 19
         res.compile().unwrap();
20
-        static_vcruntime::metabuild();
21 20
     }
22 21
 }