Replace the three error styles with one Error type and one Result alias in error.rs. The error crosses IPC as the same plain string as before. The message text does not change. Move the shared file mechanics to fsutil.rs. These are the reserved-name check, the link and junction check, the limited reads, and the atomic writes. Each module keeps its own path rules, limits, and messages. The plugin settings writer now flushes its file to disk before the rename. Remove the current_root_path and list_entries wrappers and an unused mime value. Use named windows-sys constants for the process, file, drive, and error codes. Add a test that compares the command lists in lib.rs, build.rs, and the capability files. The settings capability must be a subset of the full list. In Cargo.toml, set the author, keep only the rlib crate type, and remove the unused thiserror dependency. Remove panic = "abort" from the release profile. A panic on a worker thread then stops only that thread. It does not stop the editor with unsaved buffers.
46 lines
1.3 KiB
TOML
46 lines
1.3 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"] }
|
|
|
|
[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"
|