See: https://github.com/Byron/trash-rs/issues/105 Some operating systems or file systems support non-Unicode paths (e.g. Linux and the BSDs). `trash-rs` panicked when trashing or listing the trash with non-UTF8 names. For COSMIC Files specifically, the program panics on start if the trash contains files with invalid Unicode names. It also panics when attempting to trash files with said names. To replicate: ```sh touch ''$'\250' gio trash ''$'\250' cosmic-files ```
86 lines
2 KiB
TOML
86 lines
2 KiB
TOML
[package]
|
|
name = "cosmic-files"
|
|
version = "0.1.0"
|
|
authors = ["Jeremy Soller <jeremy@system76.com>"]
|
|
edition = "2021"
|
|
license = "GPL-3.0-only"
|
|
rust-version = "1.71"
|
|
|
|
[build-dependencies]
|
|
vergen = { version = "8", features = ["git", "gitcl"] }
|
|
|
|
[dependencies]
|
|
chrono = { version = "0.4", features = ["unstable-locales"] }
|
|
dirs = "5.0.1"
|
|
env_logger = "0.11"
|
|
freedesktop_entry_parser = { version = "1.3", optional = true }
|
|
fs_extra = "1.3"
|
|
gio = { version = "0.19", optional = true }
|
|
ignore = "0.4"
|
|
image = "0.24"
|
|
once_cell = "1.19"
|
|
open = "5.0.2"
|
|
lexical-sort = "0.3.1"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
mime_guess = "2"
|
|
notify-debouncer-full = "0.3"
|
|
paste = "1.0"
|
|
rayon = "1"
|
|
regex = "1"
|
|
serde = { version = "1", features = ["serde_derive"] }
|
|
shlex = { version = "1.3" }
|
|
tokio = { version = "1", features = ["sync"] }
|
|
trash = "5.0"
|
|
xdg = { version = "2.5.2", optional = true }
|
|
xdg-mime = "0.3"
|
|
url = "2.5"
|
|
# Internationalization
|
|
i18n-embed = { version = "0.14", features = [
|
|
"fluent-system",
|
|
"desktop-requester",
|
|
] }
|
|
i18n-embed-fl = "0.7"
|
|
rust-embed = "8"
|
|
slotmap = "1.0.7"
|
|
|
|
[dependencies.libcosmic]
|
|
git = "https://github.com/pop-os/libcosmic.git"
|
|
default-features = false
|
|
features = ["multi-window", "tokio", "winit"]
|
|
|
|
[dependencies.smol_str]
|
|
version = "0.2.1"
|
|
features = ["serde"]
|
|
|
|
[features]
|
|
default = ["desktop", "gvfs", "wgpu"]
|
|
desktop = ["libcosmic/desktop", "dep:freedesktop_entry_parser", "dep:xdg"]
|
|
gvfs = ["dep:gio"]
|
|
wgpu = ["libcosmic/wgpu"]
|
|
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
[profile.release-with-debug]
|
|
inherits = "release"
|
|
debug = true
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
fork = "0.1"
|
|
|
|
[dev-dependencies]
|
|
# cap-std = "3"
|
|
# cap-tempfile = "3"
|
|
fastrand = "2"
|
|
tempfile = "3"
|
|
test-log = "0.2"
|
|
tokio = { version = "1", features = ["rt", "macros"] }
|
|
|
|
# [patch.'https://github.com/pop-os/libcosmic']
|
|
# libcosmic = { path = "../libcosmic" }
|
|
# cosmic-config = { path = "../libcosmic/cosmic-config" }
|
|
# cosmic-theme = { path = "../libcosmic/cosmic-theme" }
|
|
|
|
# [patch.'https://github.com/pop-os/smithay-clipboard']
|
|
# smithay-clipboard = { path = "../smithay-clipboard" }
|