Cargo.toml
159 lines · 4460 bytes
1[package]
2name = "iamb"
3version = "0.0.12"
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 = "7.0"
40edit = "0.1.4"
41emojis = "0.9"
42feruca = "0.12"
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}
49indexmap = {version = "2.14", features = ["serde"]}
50lazy_static = "1.4.0"
51libc = "0.2"
52linkify = "0.11.0"
53markup5ever_rcdom = "0.39"
54mime = "0.3.16"
55mime_guess = "2.0.4"
56nom = "8.0"
57open = "5.0.0"
58rand = "0.10"
59ratatui = { version = "0.30.2", features = ["serde"] }
60regex = "1.5"
61rpassword = "7.2"
62serde = "1.0"
63serde_json = "1.0"
64shellexpand = "3.1"
65sled = "0.34.7"
66temp-dir = "0.2"
67thiserror = "2.0"
68tokio-stream = "0.1.19"
69toml = "1.1"
70tracing = "0.1.36"
71tracing-appender = "0.2.2"
72tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
73unicode-segmentation = "1.7"
74unicode-width = "0.2"
75url = {version = "2.2.2", features = ["serde"]}
76
77[dependencies.comrak]
78version = "0.55.0"
79default-features = false
80features = ["shortcodes"]
81
82[dependencies.notify-rust]
83version = "4.12"
84optional = true
85
86[dependencies.modalkit]
87version = "0.0.28"
88default-features = false
89#git = "https://github.com/ulyssa/modalkit"
90#rev = "9386f6f75f6984a1cdbd7dddbb0c0bb3e7a37c5d"
91
92[dependencies.modalkit-ratatui]
93version = "0.0.28"
94#git = "https://github.com/ulyssa/modalkit"
95#rev = "9386f6f75f6984a1cdbd7dddbb0c0bb3e7a37c5d"
96
97[dependencies.matrix-sdk-base]
98version = "0.18.0"
99
100[dependencies.matrix-sdk]
101version = "0.18.0"
102default-features = false
103features = ["e2e-encryption", "socks", "sqlite", "sso-login", "qrcode"]
104
105[dependencies.matrix-sdk-crypto]
106version = "0.18.0"
107
108[dependencies.tokio]
109version = "1.24.1"
110features = ["macros", "net", "rt-multi-thread", "sync", "time"]
111
112[dependencies.ratatui-image]
113version = "11.0.8"
114default-features = false
115features = ["serde", "crossterm", "image-defaults"]
116
117[dev-dependencies]
118pretty_assertions = "1.4.0"
119
120[profile.release-lto]
121inherits = "release"
122incremental = false
123lto = true
124
125[profile.release-light]
126inherits = "release-lto"
127opt-level = "z"
128strip = true
129panic = "abort"
130
131[package.metadata.deb]
132section = "net"
133license-file = ["LICENSE", "0"]
134assets = [
135 # Binary:
136 ["target/release/iamb", "usr/bin/iamb", "755"],
137 # Manual pages:
138 ["docs/iamb.1", "usr/share/man/man1/iamb.1", "644"],
139 ["docs/iamb.5", "usr/share/man/man5/iamb.5", "644"],
140 # Other assets:
141 ["iamb.desktop", "usr/share/applications/iamb.desktop", "644"],
142 ["config.example.toml", "usr/share/iamb/config.example.toml", "644"],
143 ["docs/iamb.svg", "usr/share/icons/hicolor/scalable/apps/iamb.svg", "644"],
144 ["docs/iamb.metainfo.xml", "usr/share/metainfo/iamb.metainfo.xml", "644"],
145]
146
147[package.metadata.generate-rpm]
148assets = [
149 # Binary:
150 { source = "target/release/iamb", dest = "/usr/bin/iamb", mode = "755" },
151 # Manual pages:
152 { source = "docs/iamb.1", dest = "/usr/share/man/man1/iamb.1", mode = "644" },
153 { source = "docs/iamb.5", dest = "/usr/share/man/man5/iamb.5", mode = "644" },
154 # Other assets:
155 { source = "iamb.desktop", dest = "/usr/share/applications/iamb.desktop", mode = "644" },
156 { source = "config.example.toml", dest = "/usr/share/iamb/config.example.toml", mode = "644"},
157 { source = "docs/iamb.svg", dest = "/usr/share/icons/hicolor/scalable/apps/iamb.svg", mode = "644"},
158 { source = "docs/iamb.metainfo.xml", dest = "/usr/share/metainfo/iamb.metainfo.xml", mode = "644"},
159]