mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-31 16:33:10 +00:00
e15429ba91
There are some experiments to try and compile `jj` to WebAssembly, so that we might be able to do things like interactive web tutorials. One step for that is making `git` support in `jj-cli` optional, because we can stub it out for something more appropriate and it's otherwise a lot of porting annoyance for both gitoxide and libgit2. (On top of that, it might be a useful build configuration for other experiments of mine where removing the need for the large libgit2 depchain is useful.) As part of this, we need to mark `jj-lib` as having `default-features = false` in the workspace dependency configuration; otherwise, the default behavior for Cargo is to compile with all its default features, i.e. with git support enabled, ignoring the `jj-cli` features clauses. Other than that, it is fairly straightforward junk; it largely just sprinkles some `#[cfg]` around liberally in order to make things work. It also adjusts the CI pipeline so this is tested there, too, so we can progressively clean it up. Signed-off-by: Austin Seipp <aseipp@pobox.com> |
||
---|---|---|
.. | ||
examples | ||
src | ||
testing | ||
tests | ||
build.rs | ||
Cargo.toml | ||
docs | ||
LICENSE |