Cargo.toml
133 lines · 3806 bytes
1[package]
2name = "iamb"
3version = "0.0.11-alpha.1"
4edition = "2018"
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.83"
15build = "build.rs"
16
17[features]
18default = ["bundled", "desktop"]
19bundled = ["matrix-sdk/bundled-sqlite", "rustls-tls"]
20desktop = ["dep:notify-rust", "modalkit/clipboard"]
21native-tls = ["matrix-sdk/native-tls"]
22rustls-tls = ["matrix-sdk/rustls-tls"]
23
24[build-dependencies.vergen]
25version = "8"
26default-features = false
27features = ["build", "git", "gitcl",]
28
29[dependencies]
30anyhow = "1.0"
31bitflags = "^2.3"
32chrono = "0.4"
33clap = {version = "~4.3", features = ["derive"]}
34css-color-parser = "0.1.2"
35dirs = "4.0.0"
36emojis = "0.5"
37futures = "0.3"
38gethostname = "0.4.1"
39html5ever = "0.26.0"
40image = "0.25.2"
41libc = "0.2"
42markup5ever_rcdom = "0.2.0"
43mime = "^0.3.16"
44mime_guess = "^2.0.4"
45nom = "7.0.0"
46open = "3.2.0"
47rand = "0.8.5"
48ratatui = "0.28.1"
49ratatui-image = { version = "=1.0.5", features = ["serde"] }
50regex = "^1.5"
51rpassword = "^7.2"
52serde = "^1.0"
53serde_json = "^1.0"
54sled = "0.34.7"
55temp-dir = "0.1.12"
56thiserror = "^1.0.37"
57toml = "^0.8.12"
58tracing = "~0.1.36"
59tracing-appender = "~0.2.2"
60tracing-subscriber = "0.3.16"
61unicode-segmentation = "^1.7"
62unicode-width = "0.1.10"
63url = {version = "^2.2.2", features = ["serde"]}
64edit = "0.1.4"
65humansize = "2.0.0"
66
67[dependencies.comrak]
68version = "0.22.0"
69default-features = false
70features = ["shortcodes"]
71
72[dependencies.notify-rust]
73version = "~4.10.0"
74default-features = false
75features = ["zbus", "serde"]
76optional = true
77
78[dependencies.modalkit]
79default-features = false
80git = "https://github.com/ulyssa/modalkit"
81rev = "45855daeeb7081eec626a8f9cf657f0fc2ff0a7a"
82
83[dependencies.modalkit-ratatui]
84git = "https://github.com/ulyssa/modalkit"
85rev = "45855daeeb7081eec626a8f9cf657f0fc2ff0a7a"
86
87[dependencies.matrix-sdk]
88version = "0.10.0"
89default-features = false
90features = ["e2e-encryption", "sqlite", "sso-login"]
91
92[dependencies.tokio]
93version = "1.24.1"
94features = ["macros", "net", "rt-multi-thread", "sync", "time"]
95
96[dev-dependencies]
97lazy_static = "1.4.0"
98pretty_assertions = "1.4.0"
99
100[profile.release-lto]
101inherits = "release"
102incremental = false
103lto = true
104
105[package.metadata.deb]
106section = "net"
107license-file = ["LICENSE", "0"]
108assets = [
109 # Binary:
110 ["target/release/iamb", "usr/bin/iamb", "755"],
111 # Manual pages:
112 ["docs/iamb.1", "usr/share/man/man1/iamb.1", "644"],
113 ["docs/iamb.5", "usr/share/man/man5/iamb.5", "644"],
114 # Other assets:
115 ["iamb.desktop", "usr/share/applications/iamb.desktop", "644"],
116 ["config.example.toml", "usr/share/iamb/config.example.toml", "644"],
117 ["docs/iamb.svg", "usr/share/icons/hicolor/scalable/apps/iamb.svg", "644"],
118 ["docs/iamb.metainfo.xml", "usr/share/metainfo/iamb.metainfo.xml", "644"],
119]
120
121[package.metadata.generate-rpm]
122assets = [
123 # Binary:
124 { source = "target/release/iamb", dest = "/usr/bin/iamb", mode = "755" },
125 # Manual pages:
126 { source = "docs/iamb.1", dest = "/usr/share/man/man1/iamb.1", mode = "644" },
127 { source = "docs/iamb.5", dest = "/usr/share/man/man5/iamb.5", mode = "644" },
128 # Other assets:
129 { source = "iamb.desktop", dest = "/usr/share/applications/iamb.desktop", mode = "644" },
130 { source = "config.example.toml", dest = "/usr/share/iamb/config.example.toml", mode = "644"},
131 { source = "docs/iamb.svg", dest = "/usr/share/icons/hicolor/scalable/apps/iamb.svg", mode = "644"},
132 { source = "docs/iamb.metainfo.xml", dest = "/usr/share/metainfo/iamb.metainfo.xml", mode = "644"},
133]