Update radicle crates to 0.9.0

This commit is contained in:
cloudhead
2024-03-26 11:56:27 +01:00
parent 736a3deb29
commit df435ef70d
3 changed files with 12 additions and 6 deletions
+8 -5
View File
@@ -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"] }
+1
View File
@@ -0,0 +1 @@
../build.rs
+3 -1
View File
@@ -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