[package]
edition = "2024"
rust-version = "1.97"
name = "ghtui"
version = "0.2.0"
build = "build.rs"
include = [
"/src/**/*.rs",
"/src/schema/github.graphql",
"/build.rs",
"/README.md",
"/LICENSE-*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A keyboard-driven terminal client for GitHub, with a pull request diff viewer that goes further than GitHub's"
readme = "README.md"
keywords = [
"github",
"tui",
"terminal",
"code-review",
"diff",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/gold-silver-copper/ghtui"
[features]
default = [
"lang-rust",
"lang-typescript",
"lang-javascript",
"lang-python",
"lang-go",
"lang-json",
"lang-yaml",
"lang-toml",
"lang-markdown",
"lang-bash",
]
lang-bash = ["dep:tree-sitter-bash"]
lang-go = ["dep:tree-sitter-go"]
lang-javascript = ["dep:tree-sitter-javascript"]
lang-json = ["dep:tree-sitter-json"]
lang-markdown = ["dep:tree-sitter-md"]
lang-python = ["dep:tree-sitter-python"]
lang-rust = ["dep:tree-sitter-rust"]
lang-toml = ["dep:tree-sitter-toml-ng"]
lang-typescript = ["dep:tree-sitter-typescript"]
lang-yaml = ["dep:tree-sitter-yaml"]
[lib]
name = "ghtui"
path = "src/lib.rs"
[[bin]]
name = "ghtui"
path = "src/main.rs"
doc = false
[dependencies.anyhow]
version = "1.0.104"
[dependencies.base64]
version = "0.23.1"
[dependencies.clap]
version = "4.6.7"
features = ["derive"]
[dependencies.crossterm]
version = "0.29.0"
features = ["event-stream"]
[dependencies.cynic]
version = "3.14.0"
features = ["rkyv"]
[dependencies.cynic-parser]
version = "0.11.2"
default-features = false
[dependencies.etcetera]
version = "0.11.0"
[dependencies.futures]
version = "0.3"
[dependencies.http]
version = "1"
[dependencies.imara-diff]
version = "0.2.0"
[dependencies.material-colors]
version = "0.5.0"
[dependencies.pulldown-cmark]
version = "0.13.4"
default-features = false
[dependencies.ratatui]
version = "0.30.2"
[dependencies.ratatui-textarea]
version = "0.9.2"
[dependencies.redb]
version = "4.3.0"
[dependencies.reqwest]
version = "0.13.5"
features = [
"rustls-no-provider",
"http2",
"json",
"stream",
]
default-features = false
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
"logging",
"tls12",
]
default-features = false
[dependencies.serde]
version = "1.0.229"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.tempfile]
version = "3.27.0"
[dependencies.terminal-colorsaurus]
version = "1.0.3"
[dependencies.thiserror]
version = "2.0.21"
[dependencies.tokio]
version = "1.53.2"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"process",
"io-util",
"fs",
"signal",
]
[dependencies.toml_edit]
version = "0.25.17"
features = ["serde"]
[dependencies.tracing]
version = "0.1.44"
[dependencies.tracing-appender]
version = "0.2.5"
[dependencies.tracing-subscriber]
version = "0.3.23"
features = [
"env-filter",
"fmt",
]
[dependencies.tree-sitter]
version = "0.27.0"
[dependencies.tree-sitter-bash]
version = "0.25.1"
optional = true
[dependencies.tree-sitter-go]
version = "0.25.0"
optional = true
[dependencies.tree-sitter-highlight]
version = "0.27.0"
[dependencies.tree-sitter-javascript]
version = "0.25.0"
optional = true
[dependencies.tree-sitter-json]
version = "0.24.8"
optional = true
[dependencies.tree-sitter-md]
version = "0.5.3"
optional = true
[dependencies.tree-sitter-python]
version = "0.25.0"
optional = true
[dependencies.tree-sitter-rust]
version = "0.24.2"
optional = true
[dependencies.tree-sitter-toml-ng]
version = "0.7.0"
optional = true
[dependencies.tree-sitter-typescript]
version = "0.23.2"
optional = true
[dependencies.tree-sitter-yaml]
version = "0.7.2"
optional = true
[dependencies.unicode-segmentation]
version = "1"
[dependencies.url]
version = "2.5.8"
[dev-dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false
[dev-dependencies.insta]
version = "1.49.0"
[dev-dependencies.proptest]
version = "1.11.0"
features = ["std"]
default-features = false
[dev-dependencies.tokio]
version = "1.53.2"
features = [
"net",
"rt-multi-thread",
"macros",
"sync",
"time",
"process",
"io-util",
"fs",
"signal",
]
[build-dependencies.cynic-codegen]
version = "3.14.0"
features = ["rkyv"]
[lints.clippy]
allow_attributes_without_reason = "deny"
assertions_on_result_states = "warn"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_sign_loss = "deny"
dbg_macro = "deny"
exit = "deny"
expect_used = "deny"
explicit_iter_loop = "warn"
fallible_impl_from = "deny"
get_unwrap = "deny"
if_not_else = "warn"
indexing_slicing = "deny"
items_after_statements = "warn"
large_stack_frames = "deny"
let_underscore_future = "deny"
lossy_float_literal = "deny"
manual_assert = "deny"
manual_let_else = "warn"
map_unwrap_or = "warn"
match_same_arms = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "deny"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
panic = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_clone = "warn"
redundant_closure_for_method_calls = "warn"
semicolon_if_nothing_returned = "warn"
str_to_string = "warn"
string_slice = "deny"
todo = "deny"
unchecked_time_subtraction = "deny"
unimplemented = "deny"
uninlined_format_args = "warn"
unreachable = "deny"
unused_result_ok = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
[lints.rust]
unsafe_code = "forbid"
[profile.dev.package."*"]
opt-level = 1
[profile.release]
lto = "thin"
codegen-units = 4