jj/cli
Ilya Grigoriev 7d81b9164a testutils: add git feature, make gix dependency optional
This makes it possible to use `testutils` without depending on all of
`gix`.

Users of testutils without the Git feature would currently either have
to use the LocalBackend or provide their own replacement to `TestRepo`.

`jj-lib`'s test still depend on Git. Both before and after this PR,
`cargo test --no-build -p jj-lib --no-default-features` fails to
compile. This seems like a difficult problem to address; this PR merely
tries to not make the situation worse.

**Motivation**: In at least one ERSC use-case, we'd like to use `testutils`, but
the gix dependency makes tests crash with the following error:

```
[test]     thread 'gitoxide.in_parallel.produce.0' panicked at code/...:
[test]     there is no reactor running, must be called from the context of a Tokio 1.x runtime
```

It's not clear to me why this happens (@davidbarsky claims to have an
idea), but this PR seems like a good workaround that also decreases the
amount of things we'd need to compile.
2025-10-28 10:55:35 -07:00
..
examples working_copy: make potentially slow methods async 2025-10-15 03:27:06 +00:00
src index: make Index::is_ancestor fallible 2025-10-28 13:47:44 +00:00
testing fake-formatter: remove unused clap::arg import 2025-10-20 02:02:38 +00:00
tests cargo: bump gix to 0.74.1 2025-10-28 05:54:49 +00:00
build.rs cleanup: use method version of str::from_utf8() 2025-09-27 09:26:05 +00:00
Cargo.toml testutils: add git feature, make gix dependency optional 2025-10-28 10:55:35 -07:00
docs build: fix cargo publish by symlinking cli/docs->docs 2024-11-05 17:37:14 -08:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00