cosmic-files/Cargo.toml

161 lines
4.1 KiB
TOML
Raw Normal View History

2024-01-03 15:27:32 -07:00
[package]
name = "cosmic-files"
version = "1.0.9"
authors = ["Jeremy Soller <jeremy@system76.com>"]
2025-09-03 23:24:38 +02:00
edition = "2024"
license = "GPL-3.0-only"
2026-01-24 16:49:12 +01:00
rust-version = "1.90"
2024-01-03 15:27:32 -07:00
[dependencies]
anyhow = "1"
jiff = "0.2"
jiff-icu = "0.2"
icu = { version = "2.1.1", features = ["compiled_data"] }
cctk = { git = "https://github.com/pop-os/cosmic-protocols", package = "cosmic-client-toolkit", rev = "160b086", optional = true }
cosmic-mime-apps = { git = "https://github.com/pop-os/cosmic-mime-apps.git", optional = true }
2025-02-19 17:55:33 +01:00
dirs = "6.0.0"
2024-01-28 06:23:40 -05:00
env_logger = "0.11"
gio = { version = "0.21", optional = true }
glib = { version = "0.21", optional = true }
2024-07-03 12:24:35 -06:00
glob = "0.3"
2024-08-26 13:24:13 -06:00
ignore = "0.4"
2024-11-11 09:14:03 -07:00
image = "0.25"
2024-03-04 10:28:16 -07:00
libc = "0.2"
2024-01-03 15:27:32 -07:00
log = "0.4"
2024-02-22 15:04:37 -07:00
mime_guess = "2"
2026-01-24 16:49:12 +01:00
notify-debouncer-full = "0.7"
notify-rust = { version = "4", optional = true }
2026-01-24 16:49:12 +01:00
open = "5.3.3"
paste = "1.0"
2024-05-31 14:54:19 -06:00
regex = "1"
rustc-hash = "2.1"
2024-05-17 08:56:19 -06:00
serde = { version = "1", features = ["serde_derive"] }
2024-03-04 10:28:16 -07:00
shlex = { version = "1.3" }
tempfile = "3"
tikv-jemallocator = { version = "0.6", optional = true }
2024-11-11 11:18:15 -07:00
tokio = { version = "1", features = ["process", "sync"] }
2024-09-18 08:31:30 -06:00
trash = { git = "https://github.com/jackpot51/trash-rs.git", branch = "cosmic" }
2024-08-26 13:24:13 -06:00
url = "2.5"
walkdir = "2.5.0"
wayland-client = { version = "0.31.13", optional = true }
xdg = { version = "3.0", optional = true }
2025-09-11 18:16:09 -04:00
xdg-mime = { git = "https://github.com/ebassi/xdg-mime-rs" }
# Compression
2026-01-28 20:05:51 -05:00
bzip2 = { version = "0.6", optional = true } #TODO: replace with pure Rust crate
flate2 = "1.1"
tar = "0.4.44"
lzma-rust2 = { version = "0.16", optional = true }
2026-01-24 16:49:12 +01:00
ordermap = { version = "1.1.0", features = ["serde"] }
2024-01-03 15:27:32 -07:00
# Internationalization
i18n-embed = { version = "0.16", features = [
2024-01-24 09:30:06 -05:00
"fluent-system",
"desktop-requester",
] }
i18n-embed-fl = "0.10"
2024-01-24 09:30:06 -05:00
rust-embed = "8"
2026-01-24 16:49:12 +01:00
slotmap = "1.1.1"
recently-used-xbel = "1.2.0"
zip = "8"
2026-01-24 16:49:12 +01:00
uzers = "0.12.2"
md-5 = "0.10.6"
png = "0.18"
jxl-oxide = { version = "0.12.5", features = ["image"] }
num_cpus = "1.17.0"
filetime = "0.2"
2025-05-05 09:07:33 -06:00
# Completion-based IO runtime to enable io_uring / IOCP file IO support.
[dependencies.compio]
2026-01-29 15:14:49 -05:00
version = "0.18"
2025-05-05 09:07:33 -06:00
default-features = false
2026-01-14 11:16:30 -07:00
features = ["fs", "io", "macros", "polling", "runtime"]
2025-05-05 09:07:33 -06:00
2024-01-03 15:27:32 -07:00
[dependencies.libcosmic]
2024-03-01 09:22:38 -07:00
git = "https://github.com/pop-os/libcosmic.git"
2024-01-03 15:27:32 -07:00
default-features = false
#TODO: a11y feature crashes
2026-01-28 20:05:51 -05:00
features = [
"about",
2026-04-03 19:29:48 -04:00
"advanced-shaping",
2026-01-28 20:05:51 -05:00
"autosize",
2026-01-24 16:49:12 +01:00
"desktop",
2026-01-28 20:05:51 -05:00
"multi-window",
"tokio",
"winit",
"surface-message",
]
2024-01-03 15:27:32 -07:00
2025-11-20 08:39:26 -07:00
[[example]]
name = "gio-list"
required-features = ["gvfs"]
[[example]]
name = "gio-mount"
required-features = ["gvfs"]
[[example]]
name = "gvfs"
required-features = ["gvfs"]
2024-01-03 15:27:32 -07:00
[features]
2025-03-15 11:59:03 -04:00
default = [
"bzip2",
"dbus-config",
2025-03-15 11:59:03 -04:00
"desktop",
"gvfs",
"io-uring",
"lzma-rust2",
2025-03-15 11:59:03 -04:00
"notify",
2025-06-18 11:22:48 -04:00
"wayland",
2026-03-13 16:04:17 -04:00
"wgpu",
2025-03-15 11:59:03 -04:00
]
2025-02-21 13:23:16 -07:00
dbus-config = ["libcosmic/dbus-config"]
2026-01-24 16:49:12 +01:00
desktop = ["dep:cosmic-mime-apps", "dep:xdg"]
2025-06-18 14:12:00 -04:00
desktop-applet = []
gvfs = ["dep:gio", "dep:glib"]
2026-01-29 15:14:49 -05:00
io-uring = ["compio/io-uring"]
jemalloc = ["dep:tikv-jemallocator"]
notify = ["dep:notify-rust"]
wayland = ["libcosmic/wayland", "dep:cctk", "dep:wayland-client"]
2024-01-03 15:27:32 -07:00
wgpu = ["libcosmic/wgpu"]
[profile.dev]
opt-level = 1
2024-01-03 15:27:32 -07:00
[profile.release-with-debug]
inherits = "release"
debug = true
[target.'cfg(unix)'.dependencies]
fork = "0.7"
[target.'cfg(target_os = "linux")'.dependencies]
procfs = "0.18"
[build-dependencies]
xdgen = "0.1"
[dev-dependencies]
# cap-std = "3"
# cap-tempfile = "3"
fastrand = "2"
test-log = "0.2"
tokio = { version = "1", features = ["rt", "macros"] }
# [patch.'https://github.com/pop-os/cosmic-text']
# cosmic-text = { path = "../cosmic-text" }
# [patch.'https://github.com/pop-os/libcosmic']
# libcosmic = { path = "../libcosmic" }
# cosmic-config = { path = "../libcosmic/cosmic-config" }
# cosmic-theme = { path = "../libcosmic/cosmic-theme" }
2026-03-13 16:04:17 -04:00
# libcosmic = { git = "https://github.com/pop-os/libcosmic//", branch = "iced-rebase" }
# cosmic-config = { git = "https://github.com/pop-os/libcosmic//", branch = "iced-rebase" }
# cosmic-theme = { git = "https://github.com/pop-os/libcosmic//", branch = "iced-rebase" }
# [patch.'https://github.com/pop-os/smithay-clipboard']
# smithay-clipboard = { path = "../smithay-clipboard" }
2024-08-20 13:26:10 -06:00
[workspace]
members = ["cosmic-files-applet"]