gitui/asyncgit/Cargo.toml

42 lines
1.2 KiB
TOML
Raw Normal View History

2020-03-22 23:08:48 +03:00
[package]
name = "asyncgit"
2022-11-22 13:07:41 +03:00
version = "0.22.1"
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]
2021-11-28 15:38:44 +03:00
crossbeam-channel = "0.5"
easy-cast = "0.5"
git2 = "0.16"
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-core = "1.10"
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"] }
shellexpand = "3.0"
thiserror = "1.0"
unicode-truncate = "0.2.0"
url = "2.3"
[dev-dependencies]
2022-12-10 13:32:43 +03:00
env_logger = "0.10"
2020-10-25 12:50:20 +03:00
invalidstring = { path = "../invalidstring", version = "0.1" }
pretty_assertions = "1.3"
serial_test = "1.0"
tempfile = "3.4"
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"]