Cargo.toml
158 lines · 4373 bytes
1[package]
2name = "iamb"
3version = "0.0.12-alpha.2"
4edition = "2024"
5authors = ["Ulyssa <git@ulyssa.dev>"]
6repository = "https://github.com/ulyssa/iamb"
7homepage = "https://iamb.chat"
8readme = "README.md"
9description = "A Matrix chat client that uses Vim keybindings"
10license = "Apache-2.0"
11exclude = [".github", "CONTRIBUTING.md"]
12keywords = ["matrix", "chat", "tui", "vim"]
13categories = ["command-line-utilities"]
14rust-version = "1.93"
15build = "build.rs"
16
17[features]
18default = ["bundled", "desktop"]
19bundled = ["matrix-sdk/bundled-sqlite"]
20desktop = ["dep:notify-rust", "modalkit/clipboard"]
21max_level_warn = ["tracing/max_level_warn"]
22max_level_error = ["tracing/max_level_error"]
23max_level_off = ["tracing/max_level_off"]
24chafa-dyn = ["ratatui-image/chafa-dyn"]
25chafa-static = ["ratatui-image/chafa-static"]
26
27[build-dependencies.vergen-gitcl]
28version = "9"
29default-features = false
30features = ["build"]
31
32[dependencies]
33anyhow = "1.0"
34bitflags = "2.3"
35chrono = "0.4"
36clap = {version = "^4.6", features = ["derive"]}
37clap_complete = "^4.6"
38css-color-parser = "0.1.2"
39dirs = "6.0"
40edit = "0.1.4"
41emojis = "0.8"
42feruca = "0.11"
43futures = "0.3"
44gethostname = "1.1"
45html5ever = "0.39.0"
46http-serde = "2.1.1"
47humansize = "2.0.0"
48image = {version = "0.25.6", features = ["serde"], default-features = false}
49libc = "0.2"
50linkify = "0.11.0"
51markup5ever_rcdom = "0.39"
52mime = "0.3.16"
53mime_guess = "2.0.4"
54nom = "8.0"
55open = "5.0.0"
56rand = "0.10"
57ratatui = "0.30.2"
58regex = "1.5"
59rpassword = "7.2"
60serde = "1.0"
61serde_json = "1.0"
62shellexpand = "3.1"
63sled = "0.34.7"
64temp-dir = "0.2"
65thiserror = "2.0"
66toml = "1.1"
67tracing = "0.1.36"
68tracing-appender = "0.2.2"
69tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
70unicode-segmentation = "1.7"
71unicode-width = "0.2"
72url = {version = "2.2.2", features = ["serde"]}
73
74[dependencies.comrak]
75version = "0.52.0"
76default-features = false
77features = ["shortcodes"]
78
79[dependencies.notify-rust]
80version = "4.12"
81optional = true
82
83[dependencies.modalkit]
84version = "0.0.26"
85default-features = false
86#git = "https://github.com/ulyssa/modalkit"
87#rev = "ad12b9ba54dd1f022f54986931b5b1b358a6676d"
88
89[dependencies.modalkit-ratatui]
90version = "0.0.26"
91#git = "https://github.com/ulyssa/modalkit"
92#rev = "ad12b9ba54dd1f022f54986931b5b1b358a6676d"
93
94[dependencies.matrix-sdk-base]
95version = "0.18.0"
96
97[dependencies.matrix-sdk]
98version = "0.18.0"
99default-features = false
100features = ["e2e-encryption", "socks", "sqlite", "sso-login"]
101
102[dependencies.matrix-sdk-crypto]
103version = "0.18.0"
104
105[dependencies.tokio]
106version = "1.24.1"
107features = ["macros", "net", "rt-multi-thread", "sync", "time"]
108
109[dependencies.ratatui-image]
110version = "11.0.6"
111default-features = false
112features = ["serde", "crossterm", "image-defaults"]
113
114[dev-dependencies]
115lazy_static = "1.4.0"
116pretty_assertions = "1.4.0"
117
118[profile.release-lto]
119inherits = "release"
120incremental = false
121lto = true
122
123[profile.release-light]
124inherits = "release-lto"
125opt-level = "z"
126strip = true
127panic = "abort"
128
129[package.metadata.deb]
130section = "net"
131license-file = ["LICENSE", "0"]
132assets = [
133 # Binary:
134 ["target/release/iamb", "usr/bin/iamb", "755"],
135 # Manual pages:
136 ["docs/iamb.1", "usr/share/man/man1/iamb.1", "644"],
137 ["docs/iamb.5", "usr/share/man/man5/iamb.5", "644"],
138 # Other assets:
139 ["iamb.desktop", "usr/share/applications/iamb.desktop", "644"],
140 ["config.example.toml", "usr/share/iamb/config.example.toml", "644"],
141 ["docs/iamb.svg", "usr/share/icons/hicolor/scalable/apps/iamb.svg", "644"],
142 ["docs/iamb.metainfo.xml", "usr/share/metainfo/iamb.metainfo.xml", "644"],
143]
144
145[package.metadata.generate-rpm]
146version = "0.0.12_alpha.2"
147assets = [
148 # Binary:
149 { source = "target/release/iamb", dest = "/usr/bin/iamb", mode = "755" },
150 # Manual pages:
151 { source = "docs/iamb.1", dest = "/usr/share/man/man1/iamb.1", mode = "644" },
152 { source = "docs/iamb.5", dest = "/usr/share/man/man5/iamb.5", mode = "644" },
153 # Other assets:
154 { source = "iamb.desktop", dest = "/usr/share/applications/iamb.desktop", mode = "644" },
155 { source = "config.example.toml", dest = "/usr/share/iamb/config.example.toml", mode = "644"},
156 { source = "docs/iamb.svg", dest = "/usr/share/icons/hicolor/scalable/apps/iamb.svg", mode = "644"},
157 { source = "docs/iamb.metainfo.xml", dest = "/usr/share/metainfo/iamb.metainfo.xml", mode = "644"},
158]