Radish alpha
r
rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt
Git libraries for Radicle
Radicle
Git
Merge remote-tracking branch 'origin/cargo/clean-up'
Fintan Halpenny committed 3 years ago
commit aad5f04aefaf7e43682083af1d19cf2af4324a5c
parent c44348f
3 files changed +1 -62
modified radicle-surf/Cargo.toml
@@ -29,10 +29,7 @@ gh-actions = []

[dependencies]
base64 = "0.13"
-
either = "1.5"
-
nom = "6"
nonempty = "0.5"
-
regex = ">= 1.5.5"
serde = { features = ["serde_derive"], optional = true, version = "1" }
thiserror = "1.0"

@@ -51,17 +48,7 @@ version = "0.2.0"
path = "../radicle-git-ext"
features = ["serde"]

-
[dev-dependencies]
-
criterion = "0.3"
-
pretty_assertions = "1.3.0"
-
proptest = "0.9"
-
serde_json = "1"
-

[build-dependencies]
anyhow = "1.0"
flate2 = "1"
tar = "0.4"
-

-
[[bench]]
-
name = "last_commit"
-
harness = false
deleted radicle-surf/benches/last_commit.rs
@@ -1,45 +0,0 @@
-
// This file is part of radicle-surf
-
// <https://github.com/radicle-dev/radicle-surf>
-
//
-
// Copyright (C) 2019-2020 The Radicle Team <dev@radicle.xyz>
-
//
-
// This program is free software: you can redistribute it and/or modify
-
// it under the terms of the GNU General Public License version 3 or
-
// later as published by the Free Software Foundation.
-
//
-
// This program is distributed in the hope that it will be useful,
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-
// GNU General Public License for more details.
-
//
-
// You should have received a copy of the GNU General Public License
-
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-

-
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
-
use git_ref_format::refname;
-
use radicle_surf::{
-
    file_system::{unsound, Path},
-
    git::{Branch, Repository},
-
};
-

-
fn last_commit_comparison(c: &mut Criterion) {
-
    let repo = Repository::open("./data/git-platinum")
-
        .expect("Could not retrieve ./data/git-platinum as git repository");
-
    let rev = Branch::local(refname!("master"));
-

-
    let mut group = c.benchmark_group("Last Commit");
-
    for path in [
-
        Path::root(),
-
        unsound::path::new("~/src/memory.rs"),
-
        unsound::path::new("~/this/is/a/really/deeply/nested/directory/tree"),
-
    ]
-
    .iter()
-
    {
-
        group.bench_with_input(BenchmarkId::new("", path), path, |b, path| {
-
            b.iter(|| repo.last_commit(path.clone(), &rev))
-
        });
-
    }
-
}
-

-
criterion_group!(benches, last_commit_comparison);
-
criterion_main!(benches);
modified test/test-helpers/Cargo.toml
@@ -21,13 +21,10 @@ tempfile = "3.3"
tracing = "0.1"
proptest = "1"

-
# [dependencies.link-canonical]
-
# path = "../../link-canonical"
-

[dependencies.minicbor]
version = "0.13"
features = ["std"]

[dependencies.tracing-subscriber]
-
version = "0.3.7"
+
version = "0.3.16"
features = ["std", "env-filter", "fmt", "json"]