Skip to content

Commit

Permalink
Refactor platform dependencies in Cargo.toml
Browse files Browse the repository at this point in the history
- Refactor the Cargo.toml file to eliminate Windows-specific dependencies.
- Streamline the project configuration for improved cross-platform compatibility.
  • Loading branch information
zhongweili committed Dec 14, 2024
1 parent c56d06e commit 931de63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 65 deletions.
51 changes: 3 additions & 48 deletions src-tauri/Cargo.lock

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

17 changes: 0 additions & 17 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,3 @@ chrono = "0.4.38"

[package.metadata.cargo-machete]
ignored = ["serde_json", "serde", "num-traits", "tauri-plugin-http", "tauri-plugin-shell", "tokio"]

[target.'cfg(target_os = "windows")'.dependencies]
ort = { version = "1.16.3", features = [
"download-binaries",
"cuda",
], default-features = false }

[target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies]
ort = { version = "1.16.3", features = [
"download-binaries",
"cuda",
], default-features = false }

[target.'cfg(all(target_os = "windows", target_arch = "aarch64"))'.dependencies]
ort = { version = "1.16.3", features = [
"download-binaries",
], default-features = false }

0 comments on commit 931de63

Please sign in to comment.