1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[]
= "vcs-core"
= "0.3.0"
= "Unified facade over vcs-git and vcs-jj: repo detection and a backend-agnostic VCS handle."
= true
= true
= true
= true
= true
= "README.md"
[]
# Re-exported `Error`/`ProcessRunner`/`JobRunner` and the `ScriptedRunner` test
# seam the underlying clients are generic over. No subprocess work happens here.
= true
# The typed per-tool clients this crate dispatches between. Path within the
# workspace; `version` is used when published independently.
= { = "../git", = "0.5" }
= { = "../jj", = "0.5" }
# Shared diff DTOs (`ChangeKind`/`DiffStat` re-exported here, so the facade and
# the backends use one type, no remap) and the error classifiers.
= { = "../diff", = "0.1" }
= { = "../cli-support", = "0.1" }
# `async fn` in the object-safe `VcsRepo` trait, so a consumer can hold a
# `Box<dyn VcsRepo>` / `&dyn VcsRepo` instead of threading the runner generic.
= "0.1"
# Optional: derive `Serialize` on the facade DTOs behind the `serde` feature
# (off by default). Turned on by JSON consumers such as `vcs-mcp`.
= { = "1", = ["derive"], = true }
[]
# Forward to the underlying clients' `tracing` (a `debug` event per command).
# Features aren't re-exported, so this is how a `vcs-core`-only consumer turns it
# on for both backends at once.
= ["vcs-git/tracing", "vcs-jj/tracing"]
# Add `#[derive(Serialize)]` to the facade DTOs (`RepoSnapshot`, `FileChange`, …);
# also enables it on the re-exported `vcs-diff` types (`ChangeKind`/`DiffStat`).
= ["dep:serde", "vcs-diff/serde"]
# Forward to the backends' `cancellation`, so a `vcs-core`-only consumer can build
# a cancellable `Git`/`Jj` (via `default_cancel_on`) and pass it to
# `Repo::from_git`/`from_jj`. Off by default.
= ["vcs-git/cancellation", "vcs-jj/cancellation"]
[]
# `#[tokio::test]` for the async dispatch tests.
= { = "1", = ["macros", "rt-multi-thread"] }
# Exercise the `serde` feature's derives (used only by the feature-gated test).
= "1"
# Throwaway git/jj repos for the ignored integration tests. Path-only: dev-deps
# are stripped on publish, so this adds no release coupling.
= { = "../testkit" }
[]
# Build docs.rs with every feature so the optional surfaces (mock / tracing /
# cancellation / serde / stream) are documented (defaults alone hide them), and pass
# `--cfg docsrs` so feature-gated items render an "Available on feature `x`" badge.
= true
= ["--cfg", "docsrs"]
[]
= true