cosmic-files/Cargo.toml
Joshua Megnauth d6c58991c0
Test helpers and unit tests (#26)
* Implement a few utility functions for tests

Most tests would require a test file hierarchy instead of operating on a
live system.

* Add unit tests for `tab::scan_path`

Tests:
* Works on a valid path
* Returns an empty Vec on an invalid directory
* Returns an empty Vec for an empty directory

I also implemented a few test helpers that may be useful for other
unit tests.

* Less spammy test logs and placate Clippy.
2024-02-01 09:29:10 -07:00

56 lines
1.2 KiB
TOML

[package]
name = "cosmic-files"
version = "0.1.0"
edition = "2021"
rust-version = "1.71"
[dependencies]
chrono = { version = "0.4", features = ["unstable-locales"] }
dirs = "5.0.1"
env_logger = "0.11"
once_cell = "1.19"
lexical-sort = "0.3.1"
log = "0.4"
notify = "6"
paste = "1.0"
serde = { version = "1", features = ["serde_derive"] }
tokio = { version = "1" }
trash = "3.2.0"
# Internationalization
i18n-embed = { version = "0.14", features = [
"fluent-system",
"desktop-requester",
] }
i18n-embed-fl = "0.7"
rust-embed = "8"
[dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
default-features = false
features = ["tokio", "winit"]
#path = "../libcosmic"
#TODO: clean up and send changes upstream
[dependencies.systemicons]
git = "https://github.com/jackpot51/systemicons"
[features]
default = ["wgpu"]
wgpu = ["libcosmic/wgpu"]
[patch.crates-io]
smithay-client-toolkit = { git = "https://github.com/pop-os/client-toolkit", branch = "wayland-resize" }
[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"