Cargo.toml

138 lines · 3908 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.85"
 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"
 37feruca = "0.10.1"
 38futures = "0.3"
 39gethostname = "0.4.1"
 40html5ever = "0.26.0"
 41image = "^0.25.6"
 42libc = "0.2"
 43markup5ever_rcdom = "0.2.0"
 44mime = "^0.3.16"
 45mime_guess = "^2.0.4"
 46nom = "7.0.0"
 47open = "3.2.0"
 48rand = "0.8.5"
 49ratatui = "0.29.0"
 50ratatui-image = { version = "~8.0.1", features = ["serde"] }
 51regex = "^1.5"
 52rpassword = "^7.2"
 53serde = "^1.0"
 54serde_json = "^1.0"
 55sled = "0.34.7"
 56temp-dir = "0.1.12"
 57thiserror = "^1.0.37"
 58toml = "^0.8.12"
 59tracing = "~0.1.36"
 60tracing-appender = "~0.2.2"
 61tracing-subscriber = "0.3.16"
 62unicode-segmentation = "^1.7"
 63unicode-width = "0.1.10"
 64url = {version = "^2.2.2", features = ["serde"]}
 65edit = "0.1.4"
 66humansize = "2.0.0"
 67linkify = "0.10.0"
 68shellexpand = "3.1.1"
 69
 70[dependencies.comrak]
 71version = "0.22.0"
 72default-features = false
 73features = ["shortcodes"]
 74
 75[dependencies.notify-rust]
 76version = "~4.10.0"
 77default-features = false
 78features = ["zbus", "serde"]
 79optional = true
 80
 81[dependencies.modalkit]
 82version = "0.0.24"
 83default-features = false
 84#git = "https://github.com/ulyssa/modalkit"
 85#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 86
 87[dependencies.modalkit-ratatui]
 88version = "0.0.24"
 89#git = "https://github.com/ulyssa/modalkit"
 90#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 91
 92[dependencies.matrix-sdk]
 93version = "0.13.0"
 94default-features = false
 95features = ["e2e-encryption", "sqlite", "sso-login"]
 96
 97[dependencies.tokio]
 98version = "1.24.1"
 99features = ["macros", "net", "rt-multi-thread", "sync", "time"]
100
101[dev-dependencies]
102lazy_static = "1.4.0"
103pretty_assertions = "1.4.0"
104
105[profile.release-lto]
106inherits = "release"
107incremental = false
108lto = true
109
110[package.metadata.deb]
111section = "net"
112license-file = ["LICENSE", "0"]
113assets = [
114    # Binary:
115    ["target/release/iamb", "usr/bin/iamb", "755"],
116    # Manual pages:
117    ["docs/iamb.1", "usr/share/man/man1/iamb.1", "644"],
118    ["docs/iamb.5", "usr/share/man/man5/iamb.5", "644"],
119    # Other assets:
120    ["iamb.desktop", "usr/share/applications/iamb.desktop", "644"],
121    ["config.example.toml", "usr/share/iamb/config.example.toml", "644"],
122    ["docs/iamb.svg", "usr/share/icons/hicolor/scalable/apps/iamb.svg", "644"],
123    ["docs/iamb.metainfo.xml", "usr/share/metainfo/iamb.metainfo.xml", "644"],
124]
125
126[package.metadata.generate-rpm]
127assets = [
128    # Binary:
129    { source = "target/release/iamb", dest = "/usr/bin/iamb", mode = "755" },
130    # Manual pages:
131    { source = "docs/iamb.1", dest = "/usr/share/man/man1/iamb.1", mode = "644" },
132    { source = "docs/iamb.5", dest = "/usr/share/man/man5/iamb.5", mode = "644" },
133    # Other assets:
134    { source = "iamb.desktop", dest = "/usr/share/applications/iamb.desktop", mode = "644" },
135    { source = "config.example.toml", dest = "/usr/share/iamb/config.example.toml", mode = "644"},
136    { source = "docs/iamb.svg", dest = "/usr/share/icons/hicolor/scalable/apps/iamb.svg", mode = "644"},
137    { source = "docs/iamb.metainfo.xml", dest = "/usr/share/metainfo/iamb.metainfo.xml", mode = "644"},
138]