elilchen лет назад: 3
Родитель
Сommit
388ae586ec
8 измененных файлов с 17 добавлено и 21 удалено
  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
  "serde_json",
816
  "serde_json",
817
  "sodiumoxide",
817
  "sodiumoxide",
818
  "sqlx",
818
  "sqlx",
819
- "static_vcruntime",
820
  "tokio-tungstenite",
819
  "tokio-tungstenite",
821
  "tower-http",
820
  "tower-http",
822
  "tungstenite",
821
  "tungstenite",
@@ -2093,12 +2092,6 @@ version = "1.1.0"
2093
 source = "registry+https://github.com/rust-lang/crates.io-index"
2092
 source = "registry+https://github.com/rust-lang/crates.io-index"
2094
 checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
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
 [[package]]
2095
 [[package]]
2103
 name = "stringprep"
2096
 name = "stringprep"
2104
 version = "0.1.2"
2097
 version = "0.1.2"

+ 0 - 1
Cargo.toml

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

+ 0 - 3
build.rs

@@ -1,6 +1,3 @@
1
 fn main() {
1
 fn main() {
2
     hbb_common::gen_version();
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
 [[package]]
2316
 [[package]]
2317
 name = "rustdesk_server"
2317
 name = "rustdesk_server"
2318
-version = "0.1.1"
2318
+version = "0.1.2"
2319
 dependencies = [
2319
 dependencies = [
2320
  "async-std",
2320
  "async-std",
2321
  "crossbeam-channel",
2321
  "crossbeam-channel",
@@ -2324,7 +2324,6 @@ dependencies = [
2324
  "once_cell",
2324
  "once_cell",
2325
  "serde",
2325
  "serde",
2326
  "serde_json",
2326
  "serde_json",
2327
- "static_vcruntime",
2328
  "tauri",
2327
  "tauri",
2329
  "tauri-build",
2328
  "tauri-build",
2330
  "windows-service",
2329
  "windows-service",
@@ -2626,12 +2625,6 @@ dependencies = [
2626
  "loom",
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
 [[package]]
2628
 [[package]]
2636
 name = "string_cache"
2629
 name = "string_cache"
2637
 version = "0.8.4"
2630
 version = "0.8.4"

+ 0 - 1
ui/Cargo.toml

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

+ 0 - 1
ui/build.rs

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