surf: Refactor

Refactor the `radicle-surf` crate to use OIDs from `radicle-oid` instead
of `radicle-git-ext`, and `radicle-git-ref-format` instead of re-exports
from `radicle-git-ext`. Also remove the dependency `radicle-std-ext`.

This requires changing `use`s, and an ad-hoc reimplementation of
`ResultExt::or_matches`.

The remaining changes (excl. tests) are automatic via `rustfmt` and
`cargo clippy`.

For testing, implement reconstruction of

    https://github.com/radicle-dev/git-platinum

in particular of the commits
 - a0dd9122d33dff2a35f564d564db127152c88e02
 - 27acd68c7504755aa11023300890bb85bbd69d45
 - e972683fe8136bf8a5cb2378cf50303554008049
and some tags.

`…/src/test/roundtrip.rs` was copied from the `test-helpers` crate in
the radicle-git workspace.

`…/src/test/{repository.rs,gen*}` was copied from the `radicle-git-ext`
crate in the radicle-git workspace.
This commit is contained in:
Lorenz Leutgeb
2026-07-24 16:27:02 +02:00
committed by Lorenz Leutgeb
parent e880810e48
commit f8b5bde40a
75 changed files with 2103 additions and 298 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
skip = .git*,*.lock,.codespellrc,target,.jj,.direnv,simulation/modules/radicle-node/cue.mod/*
skip = .git*,*.lock,.codespellrc,target,.jj,.direnv,simulation/modules/radicle-node/cue.mod/*,crates/radicle-surf/src/test/platinum/*
check-hidden = true
ignore-words-list = ser,set,noes