Cargo.toml

136 lines · 3867 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"
 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"
 67
 68[dependencies.comrak]
 69version = "0.22.0"
 70default-features = false
 71features = ["shortcodes"]
 72
 73[dependencies.notify-rust]
 74version = "~4.10.0"
 75default-features = false
 76features = ["zbus", "serde"]
 77optional = true
 78
 79[dependencies.modalkit]
 80version = "0.0.21"
 81default-features = false
 82#git = "https://github.com/ulyssa/modalkit"
 83#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 84
 85[dependencies.modalkit-ratatui]
 86version = "0.0.21"
 87#git = "https://github.com/ulyssa/modalkit"
 88#rev = "e40dbb0bfeabe4cfd08facd2acb446080a330d75"
 89
 90[dependencies.matrix-sdk]
 91version = "0.10.0"
 92default-features = false
 93features = ["e2e-encryption", "sqlite", "sso-login"]
 94
 95[dependencies.tokio]
 96version = "1.24.1"
 97features = ["macros", "net", "rt-multi-thread", "sync", "time"]
 98
 99[dev-dependencies]
100lazy_static = "1.4.0"
101pretty_assertions = "1.4.0"
102
103[profile.release-lto]
104inherits = "release"
105incremental = false
106lto = true
107
108[package.metadata.deb]
109section = "net"
110license-file = ["LICENSE", "0"]
111assets = [
112    # Binary:
113    ["target/release/iamb", "usr/bin/iamb", "755"],
114    # Manual pages:
115    ["docs/iamb.1", "usr/share/man/man1/iamb.1", "644"],
116    ["docs/iamb.5", "usr/share/man/man5/iamb.5", "644"],
117    # Other assets:
118    ["iamb.desktop", "usr/share/applications/iamb.desktop", "644"],
119    ["config.example.toml", "usr/share/iamb/config.example.toml", "644"],
120    ["docs/iamb.svg", "usr/share/icons/hicolor/scalable/apps/iamb.svg", "644"],
121    ["docs/iamb.metainfo.xml", "usr/share/metainfo/iamb.metainfo.xml", "644"],
122]
123
124[package.metadata.generate-rpm]
125assets = [
126    # Binary:
127    { source = "target/release/iamb", dest = "/usr/bin/iamb", mode = "755" },
128    # Manual pages:
129    { source = "docs/iamb.1", dest = "/usr/share/man/man1/iamb.1", mode = "644" },
130    { source = "docs/iamb.5", dest = "/usr/share/man/man5/iamb.5", mode = "644" },
131    # Other assets:
132    { source = "iamb.desktop", dest = "/usr/share/applications/iamb.desktop", mode = "644" },
133    { source = "config.example.toml", dest = "/usr/share/iamb/config.example.toml", mode = "644"},
134    { source = "docs/iamb.svg", dest = "/usr/share/icons/hicolor/scalable/apps/iamb.svg", mode = "644"},
135    { source = "docs/iamb.metainfo.xml", dest = "/usr/share/metainfo/iamb.metainfo.xml", mode = "644"},
136]