Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Update radicle crates to 0.9.0
cloudhead committed 2 years ago
commit df435ef70db7055706bfd54fe8373550b99a7f7b
parent 736a3deb29a0dff0697c85f0e7a3a1f28f8fef6d
3 files changed +12 -6
modified radicle-httpd/Cargo.toml
@@ -1,11 +1,13 @@
[package]
name = "radicle-httpd"
+
description = "Radicle HTTP daemon"
+
homepage = "https://radicle.xyz"
license = "MIT OR Apache-2.0"
-
version = "0.1.0"
-
authors = ["Alexis Sellier <alexis@radicle.xyz>"]
+
version = "0.9.0"
+
authors = ["cloudhead <cloudhead@radicle.xyz>"]
edition = "2021"
default-run = "radicle-httpd"
-
build = "../build.rs"
+
build = "build.rs"

[features]
default = []
@@ -50,18 +52,19 @@ url = { version = "2.5.0" }

[dependencies.radicle]
path = "../radicle"
-
version = "0.2.0"
+
version = "0"

[dependencies.radicle-term]
path = "../radicle-term"
+
version = "0"

[dependencies.radicle-cli]
path = "../radicle-cli"
+
version = "0"

[dev-dependencies]
hyper = { version = "1.0.1", default-features = false, features = ["client"] }
pretty_assertions = { version = "1.3.0" }
-
radicle-cli = { path = "../radicle-cli" }
radicle-crypto = { path = "../radicle-crypto", features = ["test"] }
tempfile = { version = "3.3.0" }
tower = { version = "0.4", features = ["util"] }
added radicle-httpd/build.rs
@@ -0,0 +1 @@
+
../build.rs

\ No newline at end of file
modified radicle-httpd/src/api/v1/projects.rs
@@ -403,7 +403,9 @@ async fn activity_handler(
) -> impl IntoResponse {
    let (repo, _) = ctx.repo(project)?;
    let current_date = chrono::Utc::now().timestamp();
-
    let one_year_ago = chrono::Duration::weeks(52);
+
    // SAFETY: The number of weeks is static and not out of bounds.
+
    #[allow(clippy::unwrap_used)]
+
    let one_year_ago = chrono::Duration::try_weeks(52).unwrap();
    let repo = Repository::open(repo.path())?;
    let head = repo.head()?;
    let timestamps = repo