jj/lib
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
..
benches cli, lib: move to Rust 2024 language edition 2025-07-28 17:05:41 +00:00
gen-protos protos: rename op_store to simple_op_store 2025-08-14 14:15:17 +00:00
proc-macros cli, lib: move to Rust 2024 language edition 2025-07-28 17:05:41 +00:00
src testutils: add git feature, make gix dependency optional 2025-10-28 10:55:35 -07:00
tests index: make Index::is_ancestor fallible 2025-10-28 13:47:44 +00:00
testutils testutils: add git feature, make gix dependency optional 2025-10-28 10:55:35 -07:00
Cargo.toml testutils: add git feature, make gix dependency optional 2025-10-28 10:55:35 -07:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00