Cargo.toml

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