mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-21 10:30:43 +08:00
Two of the tests in radicle-git-ext and radicle-surf relied on using the Git repository itself. This can end up being an issue when sandboxing is involved. This improves the situation by being able to generate commit data to add to a temporary repository. It also adds a helper for creating a local, temporary submodule for testing the submodule interactions in the radicle-surf API. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
61 lines
1.3 KiB
TOML
61 lines
1.3 KiB
TOML
[package]
|
|
name = "radicle-surf"
|
|
description = "A code surfing library for Git repositories"
|
|
readme = "README.md"
|
|
version = "0.19.0"
|
|
authors = ["The Radicle Team <dev@radicle.xyz>"]
|
|
edition = "2021"
|
|
homepage = "https://github.com/radicle-dev/radicle-git/blob/main/radicle-surf/README.md"
|
|
repository = "https://github.com/radicle-dev/radicle-git/tree/main/radicle-surf"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
include = [
|
|
"**/*.rs",
|
|
"Cargo.toml",
|
|
"data/git-platinum.tgz",
|
|
]
|
|
|
|
[lib]
|
|
test = false
|
|
doctest = false
|
|
|
|
[features]
|
|
# 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 = []
|
|
minicbor = ["radicle-git-ext/minicbor"]
|
|
serde = ["dep:serde", "url/serde"]
|
|
|
|
[dependencies]
|
|
base64 = "0.13"
|
|
log = "0.4"
|
|
nonempty = "0.5"
|
|
thiserror = "1.0"
|
|
url = "2.5"
|
|
|
|
[dependencies.git2]
|
|
version = "0.18.1"
|
|
default-features = false
|
|
features = ["vendored-libgit2"]
|
|
|
|
[dependencies.radicle-git-ext]
|
|
version = "0.7.0"
|
|
path = "../radicle-git-ext"
|
|
features = ["serde"]
|
|
|
|
[dependencies.radicle-std-ext]
|
|
version = "0.1.0"
|
|
path = "../radicle-std-ext"
|
|
|
|
[dependencies.serde]
|
|
version = "1"
|
|
features = ["serde_derive"]
|
|
optional = true
|
|
|
|
[build-dependencies]
|
|
anyhow = "1.0"
|
|
flate2 = "1"
|
|
tar = "0.4"
|