pake-cli 2.3.8 → 2.4.0-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,12 +7,15 @@ pub fn get_pake_config() -> (PakeConfig, Config) {
7
7
  #[cfg(feature = "cli-build")]
8
8
  let pake_config: PakeConfig = serde_json::from_str(include_str!("../.pake/pake.json"))
9
9
  .expect("Failed to parse pake config");
10
+
10
11
  #[cfg(not(feature = "cli-build"))]
11
12
  let pake_config: PakeConfig =
12
13
  serde_json::from_str(include_str!("../pake.json")).expect("Failed to parse pake config");
14
+
13
15
  #[cfg(feature = "cli-build")]
14
16
  let tauri_config: Config = serde_json::from_str(include_str!("../.pake/tauri.conf.json"))
15
17
  .expect("Failed to parse tauri config");
18
+
16
19
  #[cfg(not(feature = "cli-build"))]
17
20
  let tauri_config: Config = serde_json::from_str(include_str!("../tauri.conf.json"))
18
21
  .expect("Failed to parse tauri config");
@@ -1,10 +0,0 @@
1
- [source.crates-io]
2
- replace-with = 'rsproxy-sparse'
3
- [source.rsproxy]
4
- registry = "https://rsproxy.cn/crates.io-index"
5
- [source.rsproxy-sparse]
6
- registry = "sparse+https://rsproxy.cn/index/"
7
- [registries.rsproxy]
8
- index = "https://rsproxy.cn/crates.io-index"
9
- [net]
10
- git-fetch-with-cli = true