Cargo.toml

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