Run the blocking workspace commands on the blocking thread pool. Tauri runs a synchronous command on the main thread, so a long search or copy froze every window. Command names, arguments, and results do not change. Send each workspace-event only to the windows that have its root open. The frontend listens with its window label as the target. Do not send access events, because the frontend ignores them. Drop watchers after the state lock is released, because a macOS watcher waits for its thread when it stops. Fix these defects. Each fix has a Rust test: - A rename that changes only the letter case works on case-insensitive volumes. - New files publish with a move that never replaces a file: MoveFileExW on Windows, renameat2 or renamex_np on Linux and macOS, then a hard link, then create_new. exFAT, FAT32, and many network mounts now work. The Windows save recovery uses the same move. - On macOS and Linux, existing names with a colon stay usable. New names reject the characters that Windows does not allow, on every platform. - workspace_read_data_url checks the size before it reads the file. - workspace_write_bytes uses the atomic writer. Its only caller writes new names, so it gets no conflict check. - Delete and rename act on a link itself, not on its target. Delete now moves items to the system trash. One file moves without a confirmation. A folder or several items need one. Shift+Delete and "Delete permanently" keep the permanent delete with its confirmation. Windows drives without a Recycle Bin give an error instead of a silent permanent delete. The smoke test for tree actions now checks this behavior. The user guide describes it and the new-name rule.
50 lines
1.4 KiB
TOML
50 lines
1.4 KiB
TOML
[package]
|
|
name = "runestone"
|
|
version = "0.1.44"
|
|
description = "Writing workspace plus script editor"
|
|
authors = ["Knotty Wyvern"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "runestone_lib"
|
|
crate-type = ["rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-opener = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
notify = "8.2.0"
|
|
ignore = "0.4.33"
|
|
dunce = "1.0.5"
|
|
tauri-plugin-dialog = "2.7.3"
|
|
base64 = "0.23.1"
|
|
portable-pty = "0.9.0"
|
|
zip = { version = "8.6.0", default-features = false, features = ["deflate"] }
|
|
sha2 = "0.10"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
reqwest = { version = "0.13.5", default-features = false, features = ["blocking", "native-tls"] }
|
|
trash = "5.2.9"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2.189"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Input_KeyboardAndMouse"] }
|
|
webview2-com = "0.38.2"
|
|
windows = { version = "0.61.3", features = ["Win32_Foundation", "Win32_System_Com", "Win32_Globalization"] }
|
|
|
|
|
|
# Read the optimization guideline for more details: https://tauri.app/concept/size/#cargo-configuration
|
|
[profile.release]
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = 3
|
|
strip = true
|
|
|
|
[package.metadata.runestone]
|
|
version = "0.1.44"
|