-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathCargo.toml
More file actions
110 lines (95 loc) · 3.45 KB
/
Cargo.toml
File metadata and controls
110 lines (95 loc) · 3.45 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[package]
name = "shiba-preview"
version = "2.0.0-alpha.3"
authors = ["rhysd <lin90162@yahoo.co.jp>"]
description = "Simple markdown previewer"
edition = "2024"
license = "MIT"
repository = "https://github.com/rhysd/Shiba"
homepage = "https://github.com/rhysd/Shiba#readme"
include = [
"/src",
"/README.md",
"/LICENSE",
"/build.rs",
"/assets/icon.ico",
"!/src/testdata", # Symlinks in `src/testdata` confuses cargo because cargo builds a crate in a temporary directory and the symlinks are relative.
]
categories = ["gui", "text-processing"]
keywords = ["markdown", "preview", "desktop-app"]
[[bin]]
name = "shiba"
path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = ["bench"]
[profile.release]
lto = "thin"
panic = "abort"
codegen-units = 1
[profile.bench]
lto = "thin"
[features]
default = []
no-debug-log = ["log/release_max_level_info"]
devtools = ["wry/devtools"]
__bench = []
__sanity = []
[dependencies]
aho-corasick = "1.1.4"
ammonia = "4.1.2"
anyhow = "1.0.100"
dirs = "6.0.0"
emojis = "0.8.0"
env_logger = { version = "0.11.8", default-features = false, features = ["auto-color"] }
indexmap = { version = "2.13.0", features = ["serde"] }
lexopt = "0.3.1"
log = "0.4.28"
memchr = "2.7.6"
muda = "0.17.1"
notify = "8.2.0"
once_cell = "1.21.3"
open = "5.3.3"
phf = { version = "0.13.1", features = ["macros"] }
pulldown-cmark = { version = "0.13.0", default-features = false, features = [] }
raw-window-handle = "0.6.2"
regex = "1.12.2"
rfd = "0.17.2"
serde = { version = "1.0.228", features = ["rc"] }
serde_json = "1.0.145"
serde_yaml = "0.9.34"
tao = { version = "0.34.5", default-features = false, features = ["rwh_06"] }
zstd = "0.13.3"
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6.3"
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["NSApplication", "NSResponder", "NSImage"] }
objc2-foundation = { version = "0.3.2", default-features = false, features = ["block2", "NSData"] }
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
wry = { version = "0.54.1", features = ["transparent"] }
window-vibrancy = "0.7.1"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.62.2", features = ["Win32_Foundation", "Win32_System_Console", "Win32_UI_WindowsAndMessaging", "Win32_Graphics_Gdi"] }
[target.'cfg(target_os = "linux")'.dependencies]
wry = "0.54.2"
gdk = "0.18.2"
[dev-dependencies]
insta = { version = "1.44.1", features = ["json"] }
tempfile = "3.25.0"
[build-dependencies]
zstd = "0.13.3"
[target.'cfg(windows)'.build-dependencies]
winresource = { version = "0.1.27", default-features = false }
[package.metadata.deb]
name = "shiba"
copyright = "Copyright (c) 2015 rhysd"
pre-depends = ["libwebkit2gtk-4.1-dev", "libxdo-dev", "libgtk-3-dev"]
section = "doc"
assets = [
["target/release/shiba", "usr/bin/", "755"],
["assets/deb/shiba.desktop", "usr/share/applications/", "644"],
["assets/icon.iconset/icon_32x32.png", "usr/share/icons/hicolor/32x32/apps/shiba.png", "644"],
["assets/icon.iconset/icon_64x64.png", "usr/share/icons/hicolor/64x64/apps/shiba.png", "644"],
["assets/icon.iconset/icon_128x128.png", "usr/share/icons/hicolor/128x128/apps/shiba.png", "644"],
["assets/icon.iconset/icon_256x256.png", "usr/share/icons/hicolor/256x256/apps/shiba.png", "644"],
["assets/icon.iconset/icon_256x256@2x.png", "usr/share/icons/hicolor/512x512/apps/shiba.png", "644"],
]