Update `radicle-httpd` to latest `radicle` crate
18 files changed
+98
-84
544cdca3
→
bf78db52
modified config/custom-environment-variables.json
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -9,6 +9,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified config/default.json
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -9,6 +9,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified http-client/lib/fetcher.ts
@@ -62,14 +62,17 @@ export class ResponseParseError extends Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -113,9 +116,14 @@ export class Fetcher {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -138,7 +146,7 @@ export class Fetcher {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -159,7 +167,7 @@ export class Fetcher {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified module.d.ts
@@ -10,6 +10,7 @@ declare module "virtual:*" {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-httpd/Cargo.lock
@@ -1581,9 +1581,9 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1612,9 +1612,9 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1652,9 +1652,9 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1675,7 +1675,7 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/Cargo.toml
@@ -3,7 +3,7 @@ name = "radicle-httpd"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -42,7 +42,7 @@ tracing-logfmt = { version = "0.3.5", optional = true }
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/build/Dockerfile
@@ -35,7 +35,7 @@ RUN curl -sSf -o zig.tar.xz https://ziglang.org/download/0.12.0/zig-linu
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api.rs
@@ -1,14 +1,10 @@
|
|
|
|
| - | |
|
|
| - | |
| - | |
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -30,7 +26,8 @@ use crate::Options;
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -56,18 +53,18 @@ impl Context {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -75,7 +72,7 @@ impl Context {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -86,7 +83,7 @@ impl Context {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -94,8 +91,8 @@ impl Context {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -106,7 +103,7 @@ impl Context {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -122,13 +119,6 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -150,11 +140,9 @@ mod search {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -174,7 +162,7 @@ mod search {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -183,30 +171,35 @@ mod search {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1.rs
@@ -30,7 +30,7 @@ async fn root_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/delegates.rs
@@ -37,14 +37,14 @@ async fn delegates_repos_handler(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/repos.rs
@@ -73,12 +73,12 @@ async fn repo_root_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -436,7 +436,7 @@ async fn stats_tree_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -478,7 +478,7 @@ async fn remote_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/git.rs
@@ -85,7 +85,7 @@ async fn git_http_backend(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/lib.rs
@@ -17,7 +17,11 @@ use axum::http::{Request, Response};
|
|
|
|
|
|
| + | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
@@ -26,6 +30,8 @@ use radicle::Profile;
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -119,7 +125,14 @@ fn router(options: Options, profile: Profile) -> anyhow::Result<Router> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -127,6 +140,7 @@ fn router(options: Options, profile: Profile) -> anyhow::Result<Router> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-httpd/src/raw.rs
@@ -1,14 +1,12 @@
|
|
| - | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -99,13 +97,6 @@ pub fn router(profile: Arc<Profile>) -> Router {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -116,7 +107,7 @@ async fn file_by_commit_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -134,7 +125,7 @@ async fn file_by_canonical_head_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -176,7 +167,7 @@ async fn file_by_oid_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/test.rs
@@ -7,20 +7,21 @@ use std::sync::Arc;
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -65,6 +66,10 @@ pub fn profile(home: &Path, seed: [u8; 32]) -> radicle::Profile {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified tests/e2e/node.spec.ts
@@ -22,7 +22,7 @@ test("node metadata", async ({ page, peerManager }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/support/heartwood-release
@@ -1 +1 @@
| - | |
|
|
| + | |
|
modified tests/support/radicle-httpd-release
@@ -1 +1 @@
| - | |
|
|
| + | |
|