Cargo.toml

149 lines · 4108 bytes

  1[package]
  2name = "iamb"
  3version = "0.0.12-alpha.1"
  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"]
 24
 25[build-dependencies.vergen-gitcl]
 26version = "9"
 27default-features = false
 28features = ["build"]
 29
 30[dependencies]
 31anyhow = "1.0"
 32bitflags = "2.3"
 33chrono = "0.4"
 34clap = {version = "^4.6", features = ["derive"]}
 35clap_complete = "^4.6"
 36css-color-parser = "0.1.2"
 37dirs = "6.0"
 38edit = "0.1.4"
 39emojis = "0.8"
 40feruca = "0.11"
 41futures = "0.3"
 42gethostname = "1.1"
 43html5ever = "0.39.0"
 44http-serde = "2.1.1"
 45humansize = "2.0.0"
 46image = "0.25.6"
 47libc = "0.2"
 48linkify = "0.11.0"
 49markup5ever_rcdom = "0.39"
 50mime = "0.3.16"
 51mime_guess = "2.0.4"
 52nom = "8.0"
 53open = "5.0.0"
 54rand = "0.10"
 55ratatui = "0.29.0"
 56ratatui-image = { version = "8.0", features = ["serde"] }
 57regex = "1.5"
 58rpassword = "7.2"
 59serde = "1.0"
 60serde_json = "1.0"
 61shellexpand = "3.1"
 62sled = "0.34.7"
 63temp-dir = "0.2"
 64thiserror = "2.0"
 65toml = "1.1"
 66tracing = "0.1.36"
 67tracing-appender = "0.2.2"
 68tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
 69unicode-segmentation = "1.7"
 70unicode-width = "0.2"
 71url = {version = "2.2.2", features = ["serde"]}
 72
 73[dependencies.comrak]
 74version = "0.52.0"
 75default-features = false
 76features = ["shortcodes"]
 77
 78[dependencies.notify-rust]
 79version = "4.12"
 80optional = true
 81
 82[dependencies.modalkit]
 83version = "0.0.25"
 84default-features = false
 85#git = "https://github.com/ulyssa/modalkit"
 86#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 87
 88[dependencies.modalkit-ratatui]
 89version = "0.0.25"
 90#git = "https://github.com/ulyssa/modalkit"
 91#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 92
 93[dependencies.matrix-sdk]
 94version = "0.18.0"
 95default-features = false
 96features = ["e2e-encryption", "socks", "sqlite", "sso-login"]
 97
 98[dependencies.matrix-sdk-crypto]
 99version = "0.18.0"
100
101[dependencies.tokio]
102version = "1.24.1"
103features = ["macros", "net", "rt-multi-thread", "sync", "time"]
104
105[dev-dependencies]
106lazy_static = "1.4.0"
107pretty_assertions = "1.4.0"
108
109[profile.release-lto]
110inherits = "release"
111incremental = false
112lto = true
113
114[profile.release-light]
115inherits = "release-lto"
116opt-level = "z"
117strip = true
118panic = "abort"
119
120[package.metadata.deb]
121section = "net"
122license-file = ["LICENSE", "0"]
123assets = [
124    # Binary:
125    ["target/release/iamb", "usr/bin/iamb", "755"],
126    # Manual pages:
127    ["docs/iamb.1", "usr/share/man/man1/iamb.1", "644"],
128    ["docs/iamb.5", "usr/share/man/man5/iamb.5", "644"],
129    # Other assets:
130    ["iamb.desktop", "usr/share/applications/iamb.desktop", "644"],
131    ["config.example.toml", "usr/share/iamb/config.example.toml", "644"],
132    ["docs/iamb.svg", "usr/share/icons/hicolor/scalable/apps/iamb.svg", "644"],
133    ["docs/iamb.metainfo.xml", "usr/share/metainfo/iamb.metainfo.xml", "644"],
134]
135
136[package.metadata.generate-rpm]
137version = "0.0.12_alpha.1"
138assets = [
139    # Binary:
140    { source = "target/release/iamb", dest = "/usr/bin/iamb", mode = "755" },
141    # Manual pages:
142    { source = "docs/iamb.1", dest = "/usr/share/man/man1/iamb.1", mode = "644" },
143    { source = "docs/iamb.5", dest = "/usr/share/man/man5/iamb.5", mode = "644" },
144    # Other assets:
145    { source = "iamb.desktop", dest = "/usr/share/applications/iamb.desktop", mode = "644" },
146    { source = "config.example.toml", dest = "/usr/share/iamb/config.example.toml", mode = "644"},
147    { source = "docs/iamb.svg", dest = "/usr/share/icons/hicolor/scalable/apps/iamb.svg", mode = "644"},
148    { source = "docs/iamb.metainfo.xml", dest = "/usr/share/metainfo/iamb.metainfo.xml", mode = "644"},
149]