-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (66 loc) · 2.69 KB
/
Cargo.toml
File metadata and controls
77 lines (66 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[package]
name = "cosmic-clash"
version = "0.1.0"
edition = "2024"
license = "AGPL-3.0-or-later"
description = "GUI of clash-rs"
repository = "https://github.com/pop-os/cosmic-app-template"
[features]
default = ["cosmic"]
# See https://github.com/pop-os/libcosmic/blob/master/Cargo.toml for available features.
cosmic = [
#"libcosmic/a11y",
"libcosmic/about",
#"libcosmic/dbus-config",
"libcosmic/multi-window",
"libcosmic/single-instance",
"libcosmic/tokio"
]
[dependencies]
futures-util = "0.3"
i18n-embed = { version = "0.16", features = [
"fluent-system",
"desktop-requester",
] }
i18n-embed-fl = "0.10"
open = "5"
rust-embed = "8"
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
semver = "1.0"
dirs = "5"
# Logging
time = { version = "0.3", features = ["macros", "local-offset"] }
humantime = { version = "2", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false, features = ["tracing-log", "std", "local-time","fmt", "ansi"] }
tracing = "0.1"
eyre = "0.6"
[target.'cfg(target_os = "linux")'.dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
# features = ["wayland"] # Removed for WSL compatibility
[target.'cfg(target_os = "windows")'.dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
features = ["winit", "wgpu"]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
features = ["winit", "wgpu"]
default-features = false
# Fallback for other platforms
[target.'cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))'.dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
features = ["winit", "wgpu"]
default-features = false
# Uncomment to test a locally-cloned libcosmic
# [patch.'https://github.com/pop-os/libcosmic']
# libcosmic = { path = "../libcosmic" }
# cosmic-config = { path = "../libcosmic/cosmic-config" }
# cosmic-theme = { path = "../libcosmic/cosmic-theme" }
# Patch accesskit git dependency to use crates.io version to fix Windows build
# [patch."https://github.com/wash2/accesskit"]
# accesskit = { branch = "cosmic-0.14-patch", git = "https://github.com/Itsusinn/accesskit.git" }
# accesskit_consumer = { branch = "cosmic-0.14-patch", git = "https://github.com/Itsusinn/accesskit_consumer.git" }
# accesskit_windows = { branch = "cosmic-0.14-patch", git = "https://github.com/Itsusinn/accesskit_consumer.git" }
# accesskit_winit = { branch = "cosmic-0.14-patch", git = "https://github.com/Itsusinn/accesskit_consumer.git" }