Cargo.toml

183 lines · 5673 bytes

  1[package]
  2name = "iamb"
  3version = "0.0.13"
  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.96"
 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 = "10.0"
 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"
 42palette = "0.7.7"
 43feruca = "0.12"
 44futures = "0.3"
 45gethostname = "1.1"
 46html5ever = "0.39.0"
 47http-serde = "2.1.1"
 48humansize = "2.0.0"
 49image = {version = "0.25.6", features = ["serde"], default-features = false}
 50indexmap = {version = "2.14", features = ["serde"]}
 51lazy_static = "1.4.0"
 52libc = "0.2"
 53linkify = "0.11.0"
 54markup5ever_rcdom = "0.39"
 55mime = "0.3.16"
 56mime_guess = "2.0.4"
 57nom = "8.0"
 58open = "5.0.0"
 59ratatui = { version = "0.30.2", features = ["palette", "serde"] }
 60regex = "1.5"
 61rpassword = "7.2"
 62serde = "1.0"
 63serde_json = "1.0"
 64shellexpand = "3.1"
 65thiserror = "2.0"
 66tokio-stream = "0.1.19"
 67toml = "1.1"
 68tracing = "0.1.36"
 69tracing-appender = "0.2.2"
 70tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
 71unicode-segmentation = "1.7"
 72unicode-width = "0.2"
 73url = {version = "2.5.8", features = ["serde"]}
 74percent-encoding = "2.3.2"
 75xdg = "3.0.0"
 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.32"
 88default-features = false
 89#git = "https://github.com/ulyssa/modalkit"
 90#rev = "31158b7b759ef6f4b3c0d56305fa8a68365d8a96"
 91
 92[dependencies.modalkit-ratatui]
 93version = "0.0.32"
 94#git = "https://github.com/ulyssa/modalkit"
 95#rev = "31158b7b759ef6f4b3c0d56305fa8a68365d8a96"
 96
 97[dependencies.matrix-sdk-base]
 98version = "0.19.0"
 99
100[dependencies.matrix-sdk]
101version = "0.19.0"
102default-features = false
103features = ["e2e-encryption", "socks", "sqlite", "sso-login", "qrcode", "rustls-aws-lc-rs"]
104
105[dependencies.matrix-sdk-crypto]
106version = "0.19.0"
107
108[dependencies.tokio]
109version = "1.24.1"
110features = ["io-std", "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    # Packaged themes:
141    [ "themes/*.toml", "usr/share/iamb/themes/", "644" ],
142    # Other assets:
143    ["iamb.desktop", "usr/share/applications/iamb.desktop", "644"],
144    ["config.example.toml", "usr/share/iamb/config.example.toml", "644"],
145    ["config.full.toml", "usr/share/iamb/config.full.toml", "644"],
146    ["docs/iamb.svg", "usr/share/icons/hicolor/scalable/apps/iamb.svg", "644"],
147    ["docs/iamb.metainfo.xml", "usr/share/metainfo/iamb.metainfo.xml", "644"],
148]
149
150[package.metadata.generate-rpm]
151assets = [
152    # Binary:
153    { source = "target/release/iamb", dest = "/usr/bin/iamb", mode = "755" },
154    # Manual pages:
155    { source = "docs/iamb.1", dest = "/usr/share/man/man1/iamb.1", mode = "644" },
156    { source = "docs/iamb.5", dest = "/usr/share/man/man5/iamb.5", mode = "644" },
157    # Packaged themes:
158    { source = "themes/*.toml", dest = "/usr/share/iamb/themes/", mode = "644" },
159    # Other assets:
160    { source = "iamb.desktop", dest = "/usr/share/applications/iamb.desktop", mode = "644" },
161    { source = "config.example.toml", dest = "/usr/share/iamb/config.example.toml", mode = "644"},
162    { source = "config.full.toml", dest = "/usr/share/iamb/config.full.toml", mode = "644"},
163    { source = "docs/iamb.svg", dest = "/usr/share/icons/hicolor/scalable/apps/iamb.svg", mode = "644"},
164    { source = "docs/iamb.metainfo.xml", dest = "/usr/share/metainfo/iamb.metainfo.xml", mode = "644"},
165]
166
167[package.metadata.tar]
168format = "tar.gz"
169assets = [
170    # License:
171    { source = "LICENSE", dest = "LICENSE", mode = "644" },
172    # Manual pages:
173    { source = "docs/iamb.1", dest = "docs/iamb.1", mode = "644" },
174    { source = "docs/iamb.5", dest = "docs/iamb.5", mode = "644" },
175    # Packaged themes:
176    { source = "themes/*.toml", dest = "themes/", mode = "644" },
177    # Other assets:
178    { source = "iamb.desktop", dest = "assets/iamb.desktop", mode = "644" },
179    { source = "config.example.toml", dest = "assets/config.example.toml", mode = "644"},
180    { source = "config.full.toml", dest = "assets/config.full.toml", mode = "644"},
181    { source = "docs/iamb.svg", dest = "assets/iamb.svg", mode = "644"},
182    { source = "docs/iamb.metainfo.xml", dest = "assets/iamb.metainfo.xml", mode = "644"},
183]