chore(cargo): upgrade dependencies (#240)

This commit is contained in:
Paolo Barbolini 2024-11-02 12:27:52 +01:00 committed by GitHub
parent e0eb5474ff
commit 289c449205
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 327 additions and 423 deletions

721
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,7 @@ edition = "2021"
badge = { path = "./libs/badge" }
actix-web = "4"
actix-web-lab = "0.20"
actix-web-lab = "0.23"
anyhow = "1"
cadence = "1"
crates-index = { version = "3", default-features = false, features = ["git"] }
@ -34,7 +34,7 @@ parking_lot = "0.12"
pulldown-cmark = "0.12"
relative-path = { version = "1", features = ["serde"] }
reqwest = { version = "0.12", features = ["json"] }
rustsec = "0.29"
rustsec = "0.30"
semver = { version = "1", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
serde_urlencoded = "0.7"

View file

@ -7,8 +7,11 @@ use std::{
time::Duration,
};
use actix_web::{middleware::Logger, web};
use actix_web_lab::{extract::ThinData, middleware::NormalizePath};
use actix_web::{
middleware::Logger,
web::{self, ThinData},
};
use actix_web_lab::middleware::NormalizePath;
use cadence::{QueuingMetricSink, UdpMetricSink};
use reqwest::redirect::Policy as RedirectPolicy;

View file

@ -6,13 +6,12 @@ use actix_web::{
header::{ContentType, ETag, EntityTag},
Uri,
},
web::{Redirect, ServiceConfig},
web::{Html, Redirect, ServiceConfig, ThinData},
Either, HttpResponse, Resource, Responder,
};
use actix_web_lab::{
extract::{Path, ThinData},
extract::Path,
header::{CacheControl, CacheDirective},
respond::Html,
};
use assets::STATIC_FAVICON_PATH;
use badge::BadgeStyle;

View file

@ -1,5 +1,4 @@
use actix_web::Responder;
use actix_web_lab::respond::Html;
use actix_web::{web::Html, Responder};
use font_awesome_as_a_crate::{svg as fa, Type as FaType};
use indexmap::IndexMap;
use maud::{html, Markup, PreEscaped};
@ -7,6 +6,7 @@ use pulldown_cmark::{html, Parser};
use rustsec::advisory::Advisory;
use semver::Version;
use super::render_html;
use crate::{
engine::AnalyzeDependenciesOutcome,
models::{
@ -17,8 +17,6 @@ use crate::{
server::{error::ServerError, views::badge, ExtraConfig},
};
use super::render_html;
fn get_crates_url(name: impl AsRef<str>) -> String {
format!("https://crates.io/crates/{}", name.as_ref())
}

View file

@ -1,11 +1,12 @@
use either::Either;
use serde::{Deserialize, Serialize};
use serde_with::{DeserializeFromStr, SerializeDisplay};
use std::{
fmt::{self, Debug, Display, Formatter},
str::FromStr,
};
use either::Either;
use serde::{Deserialize, Serialize};
use serde_with::{DeserializeFromStr, SerializeDisplay};
/// An `untagged` version of `Either`.
///
/// The reason this structure is needed is that `either::Either` is