forked from mirrors/jj
88f7f4732b
This is to address issue #8. I haven't added the optimization to avoid walking all the files in `target/` yet. Even so, this patch still speeds up `jj st` in this repo, with ~13k files in `target/`, from ~320 ms to ~100 ms (-5.1dB). The time actually checking if paths match gitignores seems to go down from 116 ms to 6 ms. I think that's mostly because libgit2 has to look for `.gitignore` files in every parent directory every time we ask it about a file, while the rewritten code looks for a `.gitignore` file only when visiting a new directory.
43 lines
1 KiB
TOML
43 lines
1 KiB
TOML
[package]
|
|
name = "jujube-lib"
|
|
version = "0.1.1"
|
|
authors = ["Martin von Zweigbergk <martinvonz@google.com>"]
|
|
edition = "2018"
|
|
license = "Apache-2.0"
|
|
description = "Library for Jujube (an experimental VCS)"
|
|
homepage = "https://github.com/martinvonz/jj"
|
|
repository = "https://github.com/martinvonz/jj"
|
|
documentation = "https://docs.rs/jujube"
|
|
readme = "../README.md"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[build-dependencies]
|
|
protobuf-codegen-pure = "2.22.1"
|
|
|
|
[dependencies]
|
|
backoff = "0.2.1"
|
|
blake2 = "0.9.1"
|
|
bytes = "1.0.0"
|
|
byteorder = "1.3.4"
|
|
chrono = "0.4.19"
|
|
config = "0.10.1"
|
|
dirs = "3.0.1"
|
|
git2 = "0.13.14"
|
|
hex = "0.4.2"
|
|
maplit = "1.0.2"
|
|
pest = "2.1.3"
|
|
pest_derive = "2.1.0"
|
|
protobuf = { version = "2.22.1", features = ["with-bytes"] }
|
|
rand = "0.8.0"
|
|
regex = "1.5.4"
|
|
serde_json = "1.0.60"
|
|
tempfile = "3.1.0"
|
|
thiserror = "1.0.22"
|
|
uuid = { version = "0.8.1", features = ["v4"] }
|
|
whoami = "1.0.1"
|
|
zstd = "0.6.0"
|
|
|
|
[dev-dependencies]
|
|
num_cpus = "1.13.0"
|
|
test-case = "1.0.0"
|