The folder was a text field, and the path was always cut to its last two folders, so a wide window dropped folders it had room for and a narrow one showed only the tail. The row now shows the path the settings hold, cut in the middle at whatever width the labels and the button leave it, with Select folder opening the system's folder dialog through rune's native-file-dialog feature. Form keeps no copy of the path any more; the draft is the one place it lives. The quick tab's recordings folder and the daemon tab's log file get the same cut, and short_path goes.
53 lines
1.8 KiB
TOML
53 lines
1.8 KiB
TOML
[package]
|
|
name = "leaguerecorder"
|
|
version = "0.3.2"
|
|
edition = "2024"
|
|
description = "Native League Recorder desktop app (rune)"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "leaguerecorder"
|
|
path = "src/main.rs"
|
|
|
|
[build-dependencies]
|
|
# Bakes icons/icon.ico into the exe's resources (build.rs), for Explorer and shortcuts.
|
|
winresource = "0.1"
|
|
|
|
[dependencies]
|
|
rune = { path = "vendor/rune/crates/rune", features = ["native-file-dialog"] }
|
|
rune-kit = { path = "vendor/rune/crates/rune-kit" }
|
|
rune-notify = { path = "vendor/rune/crates/rune-notify" }
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
directories = "6"
|
|
chrono = { version = "0.4", default-features = false, features = ["clock", "std", "serde"] }
|
|
tokio = { version = "1", features = ["rt", "net", "io-util", "time", "sync"] }
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
ffmpeg-sidecar = "2.7"
|
|
ureq = "3.5"
|
|
# PNG decode of the bundled tray icon; the same crate and features rune itself uses.
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winreg = "0.56"
|
|
windows = { version = "0.62", features = [
|
|
"Win32_Foundation",
|
|
"Win32_System_Console",
|
|
"Win32_System_Diagnostics_ToolHelp",
|
|
"Win32_System_Threading",
|
|
] }
|
|
|
|
# Rune comes from a local checkout of the pinned rev, carrying two cherry-picked patches
|
|
# (anomalyco/rune issues 1320 and 1325) on branch `ported`.
|
|
# Rune's other crates are patched in the workspace that builds it. A dependency's `[patch]` doesn't apply
|
|
# the app that depends on it, so these three copies (from rune's own vendor/) are repeated here.
|
|
[patch.crates-io]
|
|
wgpu-hal = { path = "vendor/wgpu-hal" }
|
|
winit = { path = "vendor/winit" }
|
|
parley_engine = { path = "vendor/parley_engine" }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
strip = true
|