forked from mirrors/jj
24b706641f
During the transition to using more async code, I keep running into https://github.com/rust-lang/futures-rs/issues/2090. Right now, I want to convert `MergedTree::diff()` into a `Stream`. I don't want to update all call sites at once, so instead I'm adding a `MergedTree::diff_stream()` method, which just wraps `MergedTree::diff()` in a `Stream. However, since the iterator is synchronous, it needs to block on the async `Backend::read_tree()` calls. If we then also block on the `Stream` in the CLI, we run into the panic.
76 lines
2.1 KiB
TOML
76 lines
2.1 KiB
TOML
[package]
|
|
name = "jj-lib"
|
|
description = "Library for Jujutsu - an experimental version control system"
|
|
|
|
version = { workspace = true }
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
license = { workspace = true }
|
|
homepage = { workspace = true }
|
|
repository = { workspace = true }
|
|
documentation = { workspace = true }
|
|
readme = { workspace = true }
|
|
|
|
[[bench]]
|
|
name = "diff_bench"
|
|
harness = false
|
|
|
|
[build-dependencies]
|
|
version_check = { workspace = true }
|
|
|
|
[dependencies]
|
|
async-trait = { workspace = true }
|
|
backoff = { workspace = true }
|
|
blake2 = { workspace = true }
|
|
byteorder = { workspace = true }
|
|
bytes = { workspace = true }
|
|
chrono = { workspace = true }
|
|
config = { workspace = true }
|
|
digest = { workspace = true }
|
|
futures = { workspace = true }
|
|
either = { workspace = true }
|
|
git2 = { workspace = true }
|
|
gix = { workspace = true }
|
|
glob = { workspace = true }
|
|
hex = { workspace = true }
|
|
itertools = { workspace = true }
|
|
maplit = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
pest = { workspace = true }
|
|
pest_derive = { workspace = true }
|
|
pollster = { workspace = true }
|
|
prost = { workspace = true }
|
|
rand = { workspace = true }
|
|
rand_chacha = { workspace = true }
|
|
rayon = { workspace = true }
|
|
regex = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
smallvec = { workspace = true }
|
|
strsim = { workspace = true }
|
|
tempfile = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tokio = { workspace = true, optional = true }
|
|
tracing = { workspace = true }
|
|
watchman_client = { workspace = true, optional = true }
|
|
whoami = { workspace = true }
|
|
zstd = { workspace = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
rustix = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
assert_matches = { workspace = true }
|
|
criterion = { workspace = true }
|
|
esl01-renderdag = { workspace = true }
|
|
insta = { workspace = true }
|
|
num_cpus = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
test-case = { workspace = true }
|
|
testutils = { workspace = true }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
|
|
[features]
|
|
default = []
|
|
vendored-openssl = ["git2/vendored-openssl"]
|
|
watchman = ["dep:tokio", "dep:watchman_client"]
|