mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-29 06:00:28 +08:00
Refactor the source data types to reuse existing logic and update to the latest protocol. The `Blob` and `Tree` data types are updated to be backed by `File` and `Directory` respectively. This allows the construction of them to be much simpler and reuse any existing logic on those types. This also lead to the removal of `ObjectType` and `Info`. The `Revision` type was removed in favour of using the `Revision` trait. The `Revisions` type was renamed to `View`, while also renaming the `revision` module to `view`. A `View` is a simple encoding of what a peer's "view" would look like, i.e. what references do they have. This also required the introduction of getting free-form categories in the reference db, i.e. `refs/<category>`, and so a `Categories` iterator was also introduced. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
69 lines
1.4 KiB
TOML
69 lines
1.4 KiB
TOML
[package]
|
|
name = "radicle-surf"
|
|
description = "A code surfing library for VCS file systems"
|
|
readme = "README.md"
|
|
version = "0.8.0"
|
|
authors = ["The Radicle Team <dev@radicle.xyz>"]
|
|
edition = "2021"
|
|
homepage = "https://github.com/radicle-dev/radicle-surf"
|
|
repository = "https://github.com/radicle-dev/radicle-surf"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
include = [
|
|
"**/*.rs",
|
|
"Cargo.toml",
|
|
"data/git-platinum.tgz",
|
|
]
|
|
|
|
[lib]
|
|
test = false
|
|
doctest = false
|
|
|
|
[features]
|
|
serialize = ["serde"]
|
|
syntax = ["syntect", "lazy_static"]
|
|
# NOTE: testing `test_submodule_failure` on GH actions
|
|
# is painful since it uses this specific repo and expects
|
|
# certain branches to be setup. So we use this feature flag
|
|
# to ignore the test on CI.
|
|
gh-actions = []
|
|
|
|
[dependencies]
|
|
base64 = "0.13"
|
|
log = "0.4"
|
|
nonempty = "0.5"
|
|
serde = { features = ["serde_derive"], optional = true, version = "1" }
|
|
thiserror = "1.0"
|
|
|
|
[dependencies.git2]
|
|
version = "0.15.0"
|
|
default-features = false
|
|
features = ["vendored-libgit2"]
|
|
|
|
[dependencies.git-ref-format]
|
|
version = "0.1.0"
|
|
path = "../git-ref-format"
|
|
features = ["macro", "serde"]
|
|
|
|
[dependencies.lazy_static]
|
|
version = "1"
|
|
optional = true
|
|
|
|
[dependencies.radicle-git-ext]
|
|
version = "0.2.0"
|
|
path = "../radicle-git-ext"
|
|
features = ["serde"]
|
|
|
|
[dependencies.radicle-std-ext]
|
|
version = "0.1.0"
|
|
path = "../radicle-std-ext"
|
|
|
|
[dependencies.syntect]
|
|
version = "5"
|
|
optional = true
|
|
|
|
[build-dependencies]
|
|
anyhow = "1.0"
|
|
flate2 = "1"
|
|
tar = "0.4"
|