gitui/Cargo.toml

96 lines
2.6 KiB
TOML
Raw Normal View History

2020-03-15 20:42:15 +03:00
[package]
2020-03-18 15:29:03 +03:00
name = "gitui"
2023-06-19 17:00:54 +03:00
version = "0.23.0"
2022-02-22 01:33:03 +03:00
authors = ["extrawurst <mail@rusticorn.com>"]
2020-03-18 13:40:54 +03:00
description = "blazing fast terminal-ui for git"
edition = "2021"
2023-05-11 12:44:36 +03:00
rust-version = "1.65"
2021-11-28 15:38:44 +03:00
exclude = [".github/*", ".vscode/*", "assets/*"]
2020-03-27 04:05:57 +03:00
homepage = "https://github.com/extrawurst/gitui"
repository = "https://github.com/extrawurst/gitui"
2020-03-24 22:59:51 +03:00
readme = "README.md"
2020-03-24 23:22:56 +03:00
license = "MIT"
2020-03-24 23:20:06 +03:00
categories = ["command-line-utilities"]
2020-03-25 22:45:25 +03:00
keywords = [
2020-04-30 17:08:43 +03:00
"git",
2020-03-25 22:45:25 +03:00
"gui",
2020-04-30 17:08:43 +03:00
"cli",
"terminal",
2020-03-25 22:45:25 +03:00
"ui",
]
2020-03-15 20:42:15 +03:00
[dependencies]
2021-11-28 15:38:44 +03:00
anyhow = "1.0"
2023-06-19 16:58:19 +03:00
asyncgit = { path = "./asyncgit", version = "0.23", default-features = false }
2021-11-28 15:38:44 +03:00
backtrace = "0.3"
2021-11-28 16:41:17 +03:00
bitflags = "1.3"
2022-08-06 18:00:19 +03:00
bugreport = "0.5"
bytesize = { version = "1.2", default-features = false }
2022-08-17 20:05:12 +03:00
chrono = { version = "0.4", default-features = false, features = [ "clock" ] }
2023-01-29 13:23:54 +03:00
clap = { version = "4.1", features = [ "env", "cargo" ] }
2021-11-28 15:38:44 +03:00
crossbeam-channel = "0.5"
crossterm = { version = "0.26.1", features = [ "serde" ] }
2021-11-28 15:38:44 +03:00
dirs-next = "2.0"
easy-cast = "0.5"
2022-01-30 21:28:45 +03:00
filetreelist = { path = "./filetreelist", version = "0.5" }
2021-11-28 15:38:44 +03:00
fuzzy-matcher = "0.3"
2021-11-28 16:41:17 +03:00
gh-emoji = { version = "1.0", optional = true }
itertools = "0.11"
2020-03-20 20:28:42 +03:00
log = "0.4"
2023-01-29 13:23:54 +03:00
notify = "5.1"
notify-debouncer-mini = "0.2"
2022-09-02 10:17:34 +03:00
once_cell = "1"
2023-06-19 16:05:17 +03:00
ratatui = { version = "0.21", default-features = false, features = ['crossterm', 'serde'] }
rayon-core = "1.11"
ron = "0.8"
2021-11-28 15:38:44 +03:00
scopeguard = "1.1"
scopetime = { path = "./scopetime", version = "0.1" }
2020-05-22 13:44:17 +03:00
serde = "1.0"
simplelog = { version = "0.12", default-features = false }
2023-03-04 17:51:09 +03:00
struct-patch = "0.2"
Allow to build without vendored openssl, allow to build syntect with regex-onig (#1323) * allow to build syntect with regex-onig Syntect supports two regex engines: * regex-fancy: a pure-rust regex engine based on the fancy-regex * regex-onig: a regex engine based on the oniguruma C library From the syntect's Readme: > The advantage of fancy-regex is that it does not require the onig > crate which requires building and linking the Oniguruma C library. > Many users experience difficulty building the onig crate, especially > on Windows and Webassembly. > As far as our tests can tell this new engine is just as correct, but > it hasn't been tested as extensively in production. It also currently > seems to be about half the speed of the default Oniguruma engine Oniguruma engine is faster than the fancy-regex engine and the syntect project chose the latter as the default only to avoid difficulties with linking Oniguruma (C library) on some platforms. This is not an issue for linux distributions - linking against system-provided shared library is preferred to bundled libraries. Moreover, gitui built with Oniguruma instead of fancy-regex is by 25% smaller. This commit adds two cargo features, regex-fancy and regex-onig, to enable respective syntect features. The former is enabled by default. * allow to build without vendored openssl Vendoring (bundling) openssl library is very bad for security and Linux distributions forbid it. The aim of this change is to simplify packaging gitui in linux distros. Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2022-09-18 16:02:01 +03:00
syntect = { version = "5.0", default-features = false, features = ["parsing", "default-syntaxes", "default-themes", "html"] }
2022-11-19 19:14:06 +03:00
textwrap = "0.16"
unicode-segmentation = "1.10"
2021-11-28 15:38:44 +03:00
unicode-truncate = "0.2"
unicode-width = "0.1"
which = "4.4"
# pprof is not available on windows
2020-07-04 17:24:51 +03:00
[target.'cfg(not(windows))'.dependencies]
pprof = { version = "0.12", features = ["flamegraph"], optional = true }
[dev-dependencies]
pretty_assertions = "1.4"
tempfile = "3.4"
2020-06-23 13:24:57 +03:00
[badges]
maintenance = { status = "actively-developed" }
[features]
Allow to build without vendored openssl, allow to build syntect with regex-onig (#1323) * allow to build syntect with regex-onig Syntect supports two regex engines: * regex-fancy: a pure-rust regex engine based on the fancy-regex * regex-onig: a regex engine based on the oniguruma C library From the syntect's Readme: > The advantage of fancy-regex is that it does not require the onig > crate which requires building and linking the Oniguruma C library. > Many users experience difficulty building the onig crate, especially > on Windows and Webassembly. > As far as our tests can tell this new engine is just as correct, but > it hasn't been tested as extensively in production. It also currently > seems to be about half the speed of the default Oniguruma engine Oniguruma engine is faster than the fancy-regex engine and the syntect project chose the latter as the default only to avoid difficulties with linking Oniguruma (C library) on some platforms. This is not an issue for linux distributions - linking against system-provided shared library is preferred to bundled libraries. Moreover, gitui built with Oniguruma instead of fancy-regex is by 25% smaller. This commit adds two cargo features, regex-fancy and regex-onig, to enable respective syntect features. The former is enabled by default. * allow to build without vendored openssl Vendoring (bundling) openssl library is very bad for security and Linux distributions forbid it. The aim of this change is to simplify packaging gitui in linux distros. Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2022-09-18 16:02:01 +03:00
default =["ghemoji", "regex-fancy", "trace-libgit", "vendor-openssl"]
2021-11-28 15:38:44 +03:00
ghemoji =["gh-emoji"]
Allow to build without vendored openssl, allow to build syntect with regex-onig (#1323) * allow to build syntect with regex-onig Syntect supports two regex engines: * regex-fancy: a pure-rust regex engine based on the fancy-regex * regex-onig: a regex engine based on the oniguruma C library From the syntect's Readme: > The advantage of fancy-regex is that it does not require the onig > crate which requires building and linking the Oniguruma C library. > Many users experience difficulty building the onig crate, especially > on Windows and Webassembly. > As far as our tests can tell this new engine is just as correct, but > it hasn't been tested as extensively in production. It also currently > seems to be about half the speed of the default Oniguruma engine Oniguruma engine is faster than the fancy-regex engine and the syntect project chose the latter as the default only to avoid difficulties with linking Oniguruma (C library) on some platforms. This is not an issue for linux distributions - linking against system-provided shared library is preferred to bundled libraries. Moreover, gitui built with Oniguruma instead of fancy-regex is by 25% smaller. This commit adds two cargo features, regex-fancy and regex-onig, to enable respective syntect features. The former is enabled by default. * allow to build without vendored openssl Vendoring (bundling) openssl library is very bad for security and Linux distributions forbid it. The aim of this change is to simplify packaging gitui in linux distros. Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2022-09-18 16:02:01 +03:00
# regex-* features are mutually exclusive.
regex-fancy = ["syntect/regex-fancy"]
regex-onig = ["syntect/regex-onig"]
2021-11-28 15:38:44 +03:00
timing =["scopetime/enabled"]
trace-libgit =["asyncgit/trace-libgit"]
Allow to build without vendored openssl, allow to build syntect with regex-onig (#1323) * allow to build syntect with regex-onig Syntect supports two regex engines: * regex-fancy: a pure-rust regex engine based on the fancy-regex * regex-onig: a regex engine based on the oniguruma C library From the syntect's Readme: > The advantage of fancy-regex is that it does not require the onig > crate which requires building and linking the Oniguruma C library. > Many users experience difficulty building the onig crate, especially > on Windows and Webassembly. > As far as our tests can tell this new engine is just as correct, but > it hasn't been tested as extensively in production. It also currently > seems to be about half the speed of the default Oniguruma engine Oniguruma engine is faster than the fancy-regex engine and the syntect project chose the latter as the default only to avoid difficulties with linking Oniguruma (C library) on some platforms. This is not an issue for linux distributions - linking against system-provided shared library is preferred to bundled libraries. Moreover, gitui built with Oniguruma instead of fancy-regex is by 25% smaller. This commit adds two cargo features, regex-fancy and regex-onig, to enable respective syntect features. The former is enabled by default. * allow to build without vendored openssl Vendoring (bundling) openssl library is very bad for security and Linux distributions forbid it. The aim of this change is to simplify packaging gitui in linux distros. Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
2022-09-18 16:02:01 +03:00
vendor-openssl = ["asyncgit/vendor-openssl"]
2020-03-24 20:02:58 +03:00
[workspace]
2021-11-28 15:38:44 +03:00
members =[
2020-03-24 20:02:58 +03:00
"asyncgit",
"filetreelist",
2021-11-28 15:38:44 +03:00
"scopetime",
2020-04-08 01:44:13 +03:00
]
[profile.release]
lto = true
2020-04-08 01:44:13 +03:00
opt-level = 'z' # Optimize for size.
codegen-units = 1
# make debug build as fast as release
# usage of utf8 encoding inside tui
# makes their debug profile slow
2023-04-22 09:05:48 +03:00
[profile.dev.package."ratatui"]
2022-11-19 19:39:11 +03:00
opt-level = 3