winzik/tauri/Cargo.toml
David Nurdin 054725fd52 IDE SSH: drag and drop with the system's file manager, both ways
- Files / folders dropped from the file manager on the remote list (or a remote folder row) are uploaded there: the Tauri
  runtime now tells the page every drag step at once (jumphp.on('native:drag', {phase, paths, x, y})), Window 'drop' gets x / y.
- Remote rows dragged out of the window are downloaded first to <temp>/jumphp-ssh-drag/<key>/ (ssh.stage, a key per server,
  path, size, date), then a native drag hands them over: new runtime command drag.start (Linux: GTK, X11 / Wayland;
  Windows / macOS: the drag crate), Window::dragFiles(), native.dragFiles.
- Remote rows dropped on a folder of the Project view are downloaded into it.
- A name already in the target: overwrite / skip / rename ("name (2).ext"), asked (ssh.conflicts, SshTransfers).
- Tests: SshDragDropTest (stand-in ssh / scp), AppTest (drop + drag.start); docs/ide.md, docs/tauri.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JkYTqsvYu6AYr9yQ3Q4Nt6
2026-11-15 21:19:46 +01:00

48 lines
1.6 KiB
TOML

# JumPHP's Tauri runtime: the native window + WebView of desktop apps, as a C library driven by PHP (FFI).
# PHP stays the main program: it calls jt_run() from its main thread, Tauri runs its event loop there and calls
# PHP back at every frame (like the browser engine calls jumphp_frame()). See docs/tauri.md.
[package]
name = "jumphp-tauri"
version = "0.1.0"
edition = "2021"
license = "MIT"
publish = false
[lib]
name = "jumphp_tauri"
crate-type = ["cdylib"]
[features]
# window.create {devtools: true}: the WebView's inspector (right click > Inspect)
default = ["devtools"]
devtools = ["tauri/devtools"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
# custom-protocol: the pages are served by the app (tauri://localhost), never by a development server
tauri = { version = "2", features = ["custom-protocol", "image-png", "tray-icon"] }
tauri-plugin-dialog = "2"
tauri-plugin-notification = "2"
tauri-plugin-opener = "2"
tauri-plugin-clipboard-manager = "2"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-global-shortcut = "2"
serde_json = "1"
# Linux: the drag out of a window made with GTK directly (file:// URIs escaped properly)
[target.'cfg(target_os = "linux")'.dependencies]
gtk = "0.18"
# Windows / macOS: the native drag out of a window (files dragged to the file manager: Window::dragFiles, native.dragFiles)
[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies]
drag = "2.1"
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
strip = true
panic = "unwind"