Skip to content

Add the jj-core (alternative to #9766) - #9933

Open
martinvonz wants to merge 5 commits into
mainfrom
mz/tnmnsuqstvxz
Open

Add the jj-core (alternative to #9766)#9933
martinvonz wants to merge 5 commits into
mainfrom
mz/tnmnsuqstvxz

Conversation

@martinvonz

Copy link
Copy Markdown
Contributor

@PhilipMetzger: I think this is a simple start. I hope it looks okay.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added/updated tests to cover my changes
  • I fully understand the code that I am submitting (what it does,
    how it works, how it's organized), including any code drafted by an LLM.
  • For any prose generated by an LLM, I have proof-read and copy-edited with
    an eye towards deleting anything that is irrelevant, clarifying anything
    that is confusing, and adding details that are relevant. This includes,
    for example, commit descriptions, PR descriptions, and code comments.

PhilipMetzger and others added 5 commits August 6, 2026 13:01
This will be common base for building upon `jj` if you only want the
internals which make the other systems work, like the `Backend` or
`WorkingCopy` trait. It should be of utmost importance to make the
crate as low dependency as possible so it'ss not in the critical path
during compilation.

Part of #6284
These modules are general-purpose algorithms with no dependencies on
the rest of `jj-lib`, so they can move to the new low-dependency
`jj-core` crate. `jj-lib` re-exports them, so its API is unchanged.

Part of #6284
`jj-lib` re-exports it, so its API is unchanged. The `hashbrown`
dependency moves along with it since `diff` was its only user in
`jj-lib`.

Part of #6284
`jj-lib` re-exports it, so its API is unchanged.

Part of #6284
`jj-lib` re-exports it, so its API is unchanged. The tests need the
`TestResult` alias that `jj-lib` has in its crate-level `tests`
module, so `jj-core` gets a copy of that module.

Part of #6284
@martinvonz
martinvonz requested a review from a team as a code owner August 6, 2026 22:27

@yuja yuja left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@PhilipMetzger ?

Comment thread Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants