mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-30 11:46:20 +03:00
f69460cccf
* 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>
97 lines
2.6 KiB
TOML
97 lines
2.6 KiB
TOML
[package]
|
|
name = "gitui"
|
|
version = "0.21.0"
|
|
authors = ["extrawurst <mail@rusticorn.com>"]
|
|
description = "blazing fast terminal-ui for git"
|
|
edition = "2021"
|
|
rust-version = "1.60"
|
|
exclude = [".github/*", ".vscode/*", "assets/*"]
|
|
homepage = "https://github.com/extrawurst/gitui"
|
|
repository = "https://github.com/extrawurst/gitui"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
categories = ["command-line-utilities"]
|
|
keywords = [
|
|
"git",
|
|
"gui",
|
|
"cli",
|
|
"terminal",
|
|
"ui",
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
asyncgit = { path = "./asyncgit", version = "0.21", default-features = false }
|
|
backtrace = "0.3"
|
|
bitflags = "1.3"
|
|
bugreport = "0.5"
|
|
bytesize = { version = "1.1", default-features = false }
|
|
chrono = { version = "0.4", default-features = false, features = [ "clock" ] }
|
|
clap = { version = "3.2", features = [ "env", "cargo" ] }
|
|
crossbeam-channel = "0.5"
|
|
crossterm = { version = "0.25", features = [ "serde" ] }
|
|
dirs-next = "2.0"
|
|
easy-cast = "0.5"
|
|
filetreelist = { path = "./filetreelist", version = "0.5" }
|
|
fuzzy-matcher = "0.3"
|
|
gh-emoji = { version = "1.0", optional = true }
|
|
itertools = "0.10"
|
|
log = "0.4"
|
|
notify = "5.0"
|
|
notify-debouncer-mini = "0.2"
|
|
once_cell = "1"
|
|
rayon-core = "1.9"
|
|
ron = "0.8"
|
|
scopeguard = "1.1"
|
|
scopetime = { path = "./scopetime", version = "0.1" }
|
|
serde = "1.0"
|
|
simplelog = { version = "0.12", default-features = false }
|
|
syntect = { version = "5.0", default-features = false, features = ["parsing", "default-syntaxes", "default-themes", "html"] }
|
|
textwrap = "0.15"
|
|
tui = { version = "0.19", default-features = false, features = ['crossterm', 'serde'] }
|
|
unicode-segmentation = "1.10"
|
|
unicode-truncate = "0.2"
|
|
unicode-width = "0.1"
|
|
which = "4.3"
|
|
|
|
# pprof is not available on windows
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
pprof = { version = "0.10", features = ["flamegraph"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
pretty_assertions = "1.3"
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
[features]
|
|
default =["ghemoji", "regex-fancy", "trace-libgit", "vendor-openssl"]
|
|
ghemoji =["gh-emoji"]
|
|
# regex-* features are mutually exclusive.
|
|
regex-fancy = ["syntect/regex-fancy"]
|
|
regex-onig = ["syntect/regex-onig"]
|
|
timing =["scopetime/enabled"]
|
|
trace-libgit =["asyncgit/trace-libgit"]
|
|
vendor-openssl = ["asyncgit/vendor-openssl"]
|
|
|
|
[workspace]
|
|
members =[
|
|
"asyncgit",
|
|
"filetreelist",
|
|
"scopetime",
|
|
]
|
|
|
|
[profile.release]
|
|
lto = true
|
|
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
|
|
[profile.dev.package."tui"]
|
|
opt-level = 3
|
|
|
|
[profile.dev]
|
|
split-debuginfo = "unpacked"
|