gitui/asyncgit/Cargo.toml

48 lines
1.5 KiB
TOML
Raw Normal View History

2020-03-22 23:08:48 +03:00
[package]
name = "asyncgit"
2024-06-02 15:24:02 +03:00
version = "0.26.3"
2022-02-22 01:33:03 +03:00
authors = ["extrawurst <mail@rusticorn.com>"]
edition = "2021"
2020-03-24 23:20:06 +03:00
description = "allow using git2 in a asynchronous context"
homepage = "https://github.com/extrawurst/gitui"
repository = "https://github.com/extrawurst/gitui"
2020-03-24 23:20:06 +03:00
readme = "README.md"
2020-03-24 23:22:56 +03:00
license = "MIT"
2021-11-28 15:38:44 +03:00
categories = ["concurrency", "asynchronous"]
2020-05-22 13:24:13 +03:00
keywords = ["git"]
2020-03-22 23:08:48 +03:00
[dependencies]
2024-02-12 13:53:22 +03:00
bitflags = "2"
2021-11-28 15:38:44 +03:00
crossbeam-channel = "0.5"
2024-04-10 12:53:23 +03:00
dirs = "5.0"
easy-cast = "0.5"
2023-08-18 18:19:18 +03:00
fuzzy-matcher = "0.3"
git2 = "0.19"
git2-hooks = { path = "../git2-hooks", version = "0.3" }
gix = { version = "0.63", default-features = false, features = ["max-performance", "revision"] }
2021-11-28 15:38:44 +03:00
log = "0.4"
2021-08-15 15:24:20 +03:00
# git2 = { path = "../../extern/git2-rs", features = ["vendored-openssl"]}
# git2 = { git="https://github.com/extrawurst/git2-rs.git", rev="fc13dcc", features = ["vendored-openssl"]}
# pinning to vendored openssl, using the git2 feature this gets lost with new resolver
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
openssl-sys = { version = '0.9', features = ["vendored"], optional = true }
rayon = "1.10"
rayon-core = "1.12"
2021-11-28 15:38:44 +03:00
scopetime = { path = "../scopetime", version = "0.1" }
2022-11-19 19:48:56 +03:00
serde = { version = "1.0", features = ["derive"] }
ssh-key = { version = "0.6.6", features = ["crypto", "encryption"] }
thiserror = "1.0"
unicode-truncate = "1.0"
url = "2.5"
[dev-dependencies]
2024-02-12 13:53:22 +03:00
env_logger = "0.11"
2020-10-25 12:50:20 +03:00
invalidstring = { path = "../invalidstring", version = "0.1" }
pretty_assertions = "1.4"
serial_test = "3.1"
2024-02-12 13:53:22 +03:00
tempfile = "3"
2021-10-13 16:32:17 +03:00
[features]
default = ["trace-libgit"]
2021-11-28 15:38:44 +03:00
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 = ["openssl-sys"]