diff --git a/Cargo.lock b/Cargo.lock index b75b7da4..5c925f61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -505,14 +505,14 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.31" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38" +checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a" dependencies = [ "android-tzdata", "iana-time-zone", "num-traits", - "windows-targets 0.48.5", + "windows-targets 0.52.0", ] [[package]] @@ -1534,9 +1534,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.59" +version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6a67363e2aa4443928ce15e57ebae94fd8949958fd1223c4cfc0cd473ad7539" +checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -2279,7 +2279,7 @@ dependencies = [ [[package]] name = "radicle" -version = "0.2.0" +version = "0.9.0" dependencies = [ "amplify", "base64 0.21.7", @@ -2313,7 +2313,7 @@ dependencies = [ [[package]] name = "radicle-cli" -version = "0.8.0" +version = "0.9.0" dependencies = [ "anyhow", "chrono", @@ -2356,7 +2356,7 @@ dependencies = [ [[package]] name = "radicle-cli-test" -version = "0.1.1" +version = "0.9.0" dependencies = [ "escargot", "log", @@ -2369,7 +2369,7 @@ dependencies = [ [[package]] name = "radicle-cob" -version = "0.2.0" +version = "0.9.0" dependencies = [ "fastrand", "git2", @@ -2403,7 +2403,7 @@ dependencies = [ [[package]] name = "radicle-crypto" -version = "0.2.0" +version = "0.9.0" dependencies = [ "amplify", "cyphernet", @@ -2424,14 +2424,14 @@ dependencies = [ [[package]] name = "radicle-dag" -version = "0.2.0" +version = "0.9.0" dependencies = [ "fastrand", ] [[package]] name = "radicle-fetch" -version = "0.1.0" +version = "0.9.0" dependencies = [ "bstr", "either", @@ -2465,7 +2465,7 @@ dependencies = [ [[package]] name = "radicle-httpd" -version = "0.1.0" +version = "0.9.0" dependencies = [ "anyhow", "axum", @@ -2502,7 +2502,7 @@ dependencies = [ [[package]] name = "radicle-node" -version = "0.2.0" +version = "0.9.0" dependencies = [ "amplify", "anyhow", @@ -2538,7 +2538,7 @@ dependencies = [ [[package]] name = "radicle-remote-helper" -version = "0.2.0" +version = "0.9.0" dependencies = [ "log", "radicle", @@ -2550,7 +2550,7 @@ dependencies = [ [[package]] name = "radicle-ssh" -version = "0.2.0" +version = "0.9.0" dependencies = [ "byteorder", "log", @@ -2586,7 +2586,7 @@ dependencies = [ [[package]] name = "radicle-term" -version = "0.1.0" +version = "0.9.0" dependencies = [ "anstyle-query", "anyhow", @@ -2604,7 +2604,7 @@ dependencies = [ [[package]] name = "radicle-tools" -version = "0.2.0" +version = "0.9.0" dependencies = [ "anyhow", "radicle", diff --git a/radicle-cli-test/Cargo.toml b/radicle-cli-test/Cargo.toml index 771ce487..2264a37e 100644 --- a/radicle-cli-test/Cargo.toml +++ b/radicle-cli-test/Cargo.toml @@ -1,15 +1,11 @@ [package] name = "radicle-cli-test" +description = "Radicle CLI test library" +homepage = "https://radicle.xyz" license = "MIT OR Apache-2.0" -version = "0.1.1" -authors = [ - "Alexis Sellier ", - "xla " -] +version = "0.9.0" +authors = ["cloudhead "] edition = "2021" -rust-version = "1.67" -repository = "https://github.com/radicle-dev/heartwood" -description = "Test your cli with markdown descriptions" categories = ["development-tools::testing"] keywords = ["cli", "test", "command"] readme = "README.md" @@ -24,5 +20,5 @@ thiserror = { version = "1" } [dependencies.radicle] path = "../radicle" -version = "0.2.0" +version = "0.9.0" features = ["logger", "test"] diff --git a/radicle-cli/Cargo.toml b/radicle-cli/Cargo.toml index 1a9e8b3d..bea6b35b 100644 --- a/radicle-cli/Cargo.toml +++ b/radicle-cli/Cargo.toml @@ -1,10 +1,12 @@ [package] name = "radicle-cli" +description = "Radicle CLI" +homepage = "https://radicle.xyz" license = "MIT OR Apache-2.0" -version = "0.8.0" +version = "0.9.0" authors = ["Alexis Sellier "] edition = "2021" -build = "../build.rs" +build = "build.rs" [[bin]] name = "rad" @@ -49,6 +51,7 @@ zeroize = { version = "1.1" } [dependencies.radicle] version = "0" path = "../radicle" +features = ["logger"] [dependencies.radicle-cli-test] version = "0" diff --git a/radicle-cli/build.rs b/radicle-cli/build.rs new file mode 120000 index 00000000..10238032 --- /dev/null +++ b/radicle-cli/build.rs @@ -0,0 +1 @@ +../build.rs \ No newline at end of file diff --git a/radicle-cob/Cargo.toml b/radicle-cob/Cargo.toml index 2bcdb1f3..7e694960 100644 --- a/radicle-cob/Cargo.toml +++ b/radicle-cob/Cargo.toml @@ -3,7 +3,7 @@ name = "radicle-cob" description = "Radicle Collaborative Objects library" homepage = "https://radicle.xyz" repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -version = "0.2.0" +version = "0.9.0" authors = [ "Alex Good ", "Fintan Halpenny ", diff --git a/radicle-crypto/Cargo.toml b/radicle-crypto/Cargo.toml index abc13a48..506d6bcb 100644 --- a/radicle-crypto/Cargo.toml +++ b/radicle-crypto/Cargo.toml @@ -4,7 +4,7 @@ description = "Radicle cryptographic primitives" homepage = "https://radicle.xyz" repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" license = "MIT OR Apache-2.0" -version = "0.2.0" +version = "0.9.0" authors = [ "cloudhead ", "Fintan Halpenny ", diff --git a/radicle-dag/Cargo.toml b/radicle-dag/Cargo.toml index ee07f2ac..0003c2be 100644 --- a/radicle-dag/Cargo.toml +++ b/radicle-dag/Cargo.toml @@ -5,7 +5,7 @@ homepage = "https://radicle.xyz" repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" license = "MIT OR Apache-2.0" authors = ["cloudhead "] -version = "0.2.0" +version = "0.9.0" edition = "2021" [dependencies] diff --git a/radicle-fetch/Cargo.toml b/radicle-fetch/Cargo.toml index e4520f96..71fc911d 100644 --- a/radicle-fetch/Cargo.toml +++ b/radicle-fetch/Cargo.toml @@ -1,7 +1,9 @@ [package] name = "radicle-fetch" +description = "Radicle fetch protocol" +homepage = "https://radicle.xyz" license = "MIT OR Apache-2.0" -version = "0.1.0" +version = "0.9.0" authors = ["Fintan Halpenny "] edition = "2021" @@ -22,3 +24,4 @@ thiserror = { version = "1" } [dependencies.radicle] path = "../radicle" +version = "0" diff --git a/radicle-httpd/Cargo.toml b/radicle-httpd/Cargo.toml index ce94cdef..05ce9b66 100644 --- a/radicle-httpd/Cargo.toml +++ b/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 "] +version = "0.9.0" +authors = ["cloudhead "] 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"] } diff --git a/radicle-httpd/build.rs b/radicle-httpd/build.rs new file mode 120000 index 00000000..10238032 --- /dev/null +++ b/radicle-httpd/build.rs @@ -0,0 +1 @@ +../build.rs \ No newline at end of file diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs index 7e410a0b..19965d06 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/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 diff --git a/radicle-node/Cargo.toml b/radicle-node/Cargo.toml index c89dad81..5cf5d48f 100644 --- a/radicle-node/Cargo.toml +++ b/radicle-node/Cargo.toml @@ -1,10 +1,12 @@ [package] name = "radicle-node" +description = "The Radicle Node" +homepage = "https://radicle.xyz" license = "MIT OR Apache-2.0" -version = "0.2.0" -authors = ["Alexis Sellier "] +version = "0.9.0" +authors = ["cloudhead "] edition = "2021" -build = "../build.rs" +build = "build.rs" [features] test = ["radicle/test", "radicle-crypto/test", "radicle-crypto/cyphernet", "qcheck", "snapbox"] @@ -41,16 +43,16 @@ thiserror = { version = "1" } [dependencies.radicle] path = "../radicle" -version = "0.2.0" +version = "0.9.0" features = ["logger"] [dependencies.radicle-fetch] path = "../radicle-fetch" -version = "0.1.0" +version = "0.9.0" [dev-dependencies] -radicle = { path = "../radicle", version = "*", features = ["test"] } -radicle-crypto = { path = "../radicle-crypto", version = "*", features = ["test", "cyphernet"] } +radicle = { path = "../radicle", version = "0", features = ["test"] } +radicle-crypto = { path = "../radicle-crypto", version = "0", features = ["test", "cyphernet"] } qcheck = { version = "1", default-features = false } qcheck-macros = { version = "1", default-features = false } snapbox = { version = "0.4.3" } diff --git a/radicle-node/build.rs b/radicle-node/build.rs new file mode 120000 index 00000000..10238032 --- /dev/null +++ b/radicle-node/build.rs @@ -0,0 +1 @@ +../build.rs \ No newline at end of file diff --git a/radicle-remote-helper/Cargo.toml b/radicle-remote-helper/Cargo.toml index 051b15ee..fc814393 100644 --- a/radicle-remote-helper/Cargo.toml +++ b/radicle-remote-helper/Cargo.toml @@ -1,10 +1,12 @@ [package] name = "radicle-remote-helper" +description = "Radicle git remote helper" +homepage = "https://radicle.xyz" license = "MIT OR Apache-2.0" -version = "0.2.0" -authors = ["Alexis Sellier "] +version = "0.9.0" +authors = ["cloudhead "] edition = "2021" -build = "../build.rs" +build = "build.rs" [dependencies] thiserror = { version = "1" } diff --git a/radicle-remote-helper/build.rs b/radicle-remote-helper/build.rs new file mode 120000 index 00000000..10238032 --- /dev/null +++ b/radicle-remote-helper/build.rs @@ -0,0 +1 @@ +../build.rs \ No newline at end of file diff --git a/radicle-ssh/Cargo.toml b/radicle-ssh/Cargo.toml index a33c0eef..50add46b 100644 --- a/radicle-ssh/Cargo.toml +++ b/radicle-ssh/Cargo.toml @@ -4,7 +4,7 @@ description = "Radicle SSH library" homepage = "https://radicle.xyz" repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" license = "Apache-2.0" -version = "0.2.0" +version = "0.9.0" authors = [ "Fintan Halpenny ", "Pierre-Étienne Meunier ", diff --git a/radicle-term/Cargo.toml b/radicle-term/Cargo.toml index 9a75fc12..5be3bc6d 100644 --- a/radicle-term/Cargo.toml +++ b/radicle-term/Cargo.toml @@ -4,7 +4,7 @@ description = "Terminal library used by the Radicle CLI" homepage = "https://radicle.xyz" repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" license = "MIT OR Apache-2.0" -version = "0.1.0" +version = "0.9.0" authors = ["cloudhead "] edition = "2021" diff --git a/radicle-tools/Cargo.toml b/radicle-tools/Cargo.toml index aadb8a24..b813da84 100644 --- a/radicle-tools/Cargo.toml +++ b/radicle-tools/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "radicle-tools" license = "MIT OR Apache-2.0" -version = "0.2.0" +version = "0.9.0" authors = ["Alexis Sellier "] edition = "2021" diff --git a/radicle/Cargo.toml b/radicle/Cargo.toml index a034fabe..413c9906 100644 --- a/radicle/Cargo.toml +++ b/radicle/Cargo.toml @@ -4,7 +4,7 @@ description = "Radicle standard library" homepage = "https://radicle.xyz" repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" license = "MIT OR Apache-2.0" -version = "0.2.0" +version = "0.9.0" authors = ["cloudhead "] edition = "2021" @@ -51,7 +51,7 @@ features = ["vendored-libgit2"] [dependencies.radicle-cob] path = "../radicle-cob" -version = "0" +version = "0.9.0" [dependencies.radicle-crypto] path = "../radicle-crypto"