Update `webfinger-rs` to 0.0.13

main
Avery 1 month ago
parent 4ddcecb650
commit 7e6be25023
Signed by: Avery
GPG Key ID: 4E53F4CB69B2CC8D

5
Cargo.lock generated

@ -1599,8 +1599,9 @@ dependencies = [
[[package]] [[package]]
name = "webfinger-rs" name = "webfinger-rs"
version = "0.0.11" version = "0.0.13"
source = "git+https://github.com/joshka/webfinger-rs.git?rev=0572213ad3f8eae9f3c79754e1f17d880ed1f580#0572213ad3f8eae9f3c79754e1f17d880ed1f580" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6f7d55f92d53d3a5211d7a0a594acf1acc763618b56b88ea01e7bc2fe791343"
dependencies = [ dependencies = [
"async-convert", "async-convert",
"axum", "axum",

@ -14,4 +14,4 @@ sha2 = "0.10.8"
tokio = { version = "1.44.2", features = ["full"] } tokio = { version = "1.44.2", features = ["full"] }
tower-layer = "0.3.3" tower-layer = "0.3.3"
tower-service = "0.3.3" tower-service = "0.3.3"
webfinger-rs = { git = "https://github.com/joshka/webfinger-rs.git", rev = "0572213ad3f8eae9f3c79754e1f17d880ed1f580", features = ["axum"] } webfinger-rs = { version = "0.0.13", features = ["axum"] }

@ -5,7 +5,7 @@ use axum::{
use log::debug; use log::debug;
use serde::Serialize; use serde::Serialize;
use crate::USER; use crate::{HOST, USER};
#[derive(Serialize)] #[derive(Serialize)]
pub struct UsersResponse { pub struct UsersResponse {
@ -24,7 +24,7 @@ pub async fn users_get(Path(user): Path<String>) -> UsersResponse {
context: "https://www.w3.org/ns/activitystreams".to_string(), context: "https://www.w3.org/ns/activitystreams".to_string(),
r#type: "Person".to_string(), r#type: "Person".to_string(),
name: "Sally Smith".to_string(), name: "Sally Smith".to_string(),
id: "https://testhost.com/users/test".to_string(), id: format!("https://{HOST}/users/{USER}"),
} }
} }

Loading…
Cancel
Save