Files
radicle-git/radicle-surf/Cargo.toml
T
Fintan Halpenny b4ca7f31db test: improve commit and submodule testing
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
2024-03-13 14:22:10 +00:00

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"