Cargo.toml

138 lines · 3816 bytes

  1[package]
  2name = "iamb"
  3version = "0.0.11"
  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.93"
 15build = "build.rs"
 16
 17[features]
 18default = ["bundled", "desktop"]
 19bundled = ["matrix-sdk/bundled-sqlite"]
 20desktop = ["dep:notify-rust", "modalkit/clipboard"]
 21
 22[build-dependencies.vergen-gitcl]
 23version = "9"
 24default-features = false
 25features = ["build"]
 26
 27[dependencies]
 28anyhow = "1.0"
 29bitflags = "2.3"
 30chrono = "0.4"
 31clap = {version = "^4.6", features = ["derive"]}
 32clap_complete = "^4.6"
 33css-color-parser = "0.1.2"
 34dirs = "6.0"
 35edit = "0.1.4"
 36emojis = "0.8"
 37feruca = "0.11"
 38futures = "0.3"
 39gethostname = "1.1"
 40html5ever = "0.39.0"
 41humansize = "2.0.0"
 42image = "0.25.6"
 43libc = "0.2"
 44linkify = "0.11.0"
 45markup5ever_rcdom = "0.39"
 46mime = "0.3.16"
 47mime_guess = "2.0.4"
 48nom = "8.0"
 49open = "5.0.0"
 50rand = "0.10"
 51ratatui = "0.29.0"
 52ratatui-image = { version = "8.0", features = ["serde"] }
 53regex = "1.5"
 54rpassword = "7.2"
 55serde = "1.0"
 56serde_json = "1.0"
 57shellexpand = "3.1"
 58sled = "0.34.7"
 59temp-dir = "0.2"
 60thiserror = "2.0"
 61toml = "1.1"
 62tracing = "0.1.36"
 63tracing-appender = "0.2.2"
 64tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
 65unicode-segmentation = "1.7"
 66unicode-width = "0.2"
 67url = {version = "2.2.2", features = ["serde"]}
 68
 69[dependencies.comrak]
 70version = "0.52.0"
 71default-features = false
 72features = ["shortcodes"]
 73
 74[dependencies.notify-rust]
 75version = "4.12"
 76optional = true
 77
 78[dependencies.modalkit]
 79version = "0.0.25"
 80default-features = false
 81#git = "https://github.com/ulyssa/modalkit"
 82#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 83
 84[dependencies.modalkit-ratatui]
 85version = "0.0.25"
 86#git = "https://github.com/ulyssa/modalkit"
 87#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 88
 89[dependencies.matrix-sdk]
 90version = "0.18.0"
 91default-features = false
 92features = ["e2e-encryption", "sqlite", "sso-login"]
 93
 94[dependencies.matrix-sdk-crypto]
 95version = "0.18.0"
 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]