Files
photoreport/apps/desktop/src-tauri/Cargo.toml
T
spark e6b5f2e390
ci / rust (pull_request) Successful in 11m45s
ci / typescript (pull_request) Failing after 14m55s
Let a Windows release, a Linux or Windows cable, and a future Developer ID join the desktop build.
The installer job was waiting on a commented matrix row, USB stayed on Image Capture, face detection could not read the Windows CPU, and notarisation had nowhere to put an Apple account.
2026-11-26 15:09:36 +00:00

78 lines
3.2 KiB
TOML

[package]
name = "photoreport-desktop"
version = "0.3.34"
edition = "2024"
publish = false
description = "PhotoReport desktop: the web app in a native shell, with keychain sign-in and (later) local FTP and the native engine."
[lib]
name = "photoreport_desktop_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
# Production serves the interface from this computer. Without this feature Tauri treats every
# build as development and the window opens http://localhost:5173, which stays blank unless
# `tauri dev` is running. `tauri dev` turns the feature off and uses the dev server.
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
cc = "1"
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
keyring = { version = "3", features = ["apple-native", "windows-native", "sync-secret-service", "crypto-rust"] }
serde = { version = "1", features = ["derive"] }
rand = "0.8"
local-ip-address = "0.6"
dirs = "6"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
libunftp = { version = "0.23.1", default-features = false, features = ["ring"] }
unftp-sbe-fs = "0.4.0"
async-trait = "0.1"
tokio = { version = "1", features = ["sync", "time", "fs", "net", "io-util"] }
unftp-core = "0.1.0"
serde_json = "1"
sha2 = "0.10"
libc = "0.2"
image = { version = "0.25", default-features = false, features = ["jpeg"] }
# Capture time and filmstrip thumbnails. The embedded-preview feature reads the camera JPEG; the browser build leaves it off.
photoreport-engine = { path = "../../../engine/core", features = ["embedded-preview", "photo-merge"] }
photoreport-faces = { path = "../../../workers/faces" }
tauri-plugin-dialog = "2"
tauri-plugin-updater = "2"
# New versions of the interface (see src/ui.rs). Already built for the updater: same versions, no new crates.
reqwest = { version = "0.13", default-features = false, features = ["rustls-no-provider"] }
rustls = { version = "0.23", default-features = false, features = ["ring"] }
# Apple Silicon only: the published ONNX Runtime build with Core ML exists for that chip.
# It is linked into the app, so Intel Macs simply keep the CPU interpreter.
[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies]
ort = { version = "=2.0.0-rc.14", default-features = false, features = ["std", "download-binaries", "copy-dylibs", "api-31", "tls-native", "coreml"] }
# Linux USB: libgphoto2 (PTP). The Mac build keeps Image Capture and does not link this.
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
gphoto2 = "=3.4.1"
# Windows USB: the portable-device API, which speaks PTP through the driver Windows already loaded.
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.61", features = [
"Win32_Devices_PortableDevices",
"Win32_Foundation",
"Win32_System_Com",
"Win32_System_Com_StructuredStorage",
"Win32_System_Ole",
"Win32_System_Variant",
] }
# Release builds: no symbols or debug info, whole-program optimisation, no unwinding tables. The binary only tells
# a disassembler what machine code does, not what the functions were called.
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
debug = false