A Rust application to showcase badge awards in the AT Protocol ecosystem.

chore: Update to atproto-* crates 0.9.2

Signed-off-by: Nick Gerakines <nick.gerakines@gmail.com>

+16 -20
+10 -10
Cargo.lock
··· 171 171 172 172 [[package]] 173 173 name = "atproto-client" 174 - version = "0.7.0" 174 + version = "0.9.2" 175 175 source = "registry+https://github.com/rust-lang/crates.io-index" 176 - checksum = "00376975539aeb558ecb5592b88d50645fdba2838ea9d1b47818911c84c37a3d" 176 + checksum = "b1807b75d7b072f4feb4ffe5d6f749369b40f255b5bddf19fc0024392e360853" 177 177 dependencies = [ 178 178 "anyhow", 179 179 "atproto-identity", ··· 193 193 194 194 [[package]] 195 195 name = "atproto-identity" 196 - version = "0.7.0" 196 + version = "0.9.2" 197 197 source = "registry+https://github.com/rust-lang/crates.io-index" 198 - checksum = "8a9dde2a0c9af5eff60c0ed781ebf33f73980a93e0fe2c17b5be8ba52c7c9cf6" 198 + checksum = "39e8b6d8136cc72cc76fc081e2389758761dd4018b04408d55a71281aa310fe2" 199 199 dependencies = [ 200 200 "anyhow", 201 201 "async-trait", ··· 221 221 222 222 [[package]] 223 223 name = "atproto-jetstream" 224 - version = "0.7.0" 224 + version = "0.9.2" 225 225 source = "registry+https://github.com/rust-lang/crates.io-index" 226 - checksum = "356bbdedd1c32f2b21a5305d1b4c3b6e633132b486738015dcce43d6de7d04c6" 226 + checksum = "289bfd0e2988258e6e96b5632bc84befbd4f8bd30497341f2fb991603ff6f480" 227 227 dependencies = [ 228 228 "anyhow", 229 229 "async-trait", ··· 244 244 245 245 [[package]] 246 246 name = "atproto-oauth" 247 - version = "0.7.0" 247 + version = "0.9.2" 248 248 source = "registry+https://github.com/rust-lang/crates.io-index" 249 - checksum = "229e8637eb0c7a2f81feec31f50484140a6a8a7fe1a69244367a3bfd2b894524" 249 + checksum = "e835ee92d505a6edc794943067af4e0922e4b9e8d54f4df4eaaab15d1ea51687" 250 250 dependencies = [ 251 251 "anyhow", 252 252 "async-trait", ··· 278 278 279 279 [[package]] 280 280 name = "atproto-record" 281 - version = "0.7.0" 281 + version = "0.9.2" 282 282 source = "registry+https://github.com/rust-lang/crates.io-index" 283 - checksum = "1659fb8c04d0ef8245c9e866863aa5d2ffc56f128ecabe215879fac3b47a2f55" 283 + checksum = "c8fd0584e562083f5fe4cde960debbe45ee7a43c18e312d4c260e26892f3a945" 284 284 dependencies = [ 285 285 "anyhow", 286 286 "atproto-identity",
+4 -4
Cargo.toml
··· 16 16 17 17 [dependencies] 18 18 # ATProtocol dependencies 19 - atproto-client = { version = "0.7.0" } 20 - atproto-identity = { version = "0.7.0" } 21 - atproto-record = { version = "0.7.0" } 22 - atproto-jetstream = { version = "0.7.0" } 19 + atproto-client = { version = "0.9.2" } 20 + atproto-identity = { version = "0.9.2" } 21 + atproto-record = { version = "0.9.2" } 22 + atproto-jetstream = { version = "0.9.2" } 23 23 24 24 # Web framework 25 25 axum = "0.8"
-1
src/bin/showcase.rs
··· 34 34 #[cfg(feature = "reload")] 35 35 use showcase::templates::build_env; 36 36 37 - 38 37 /// Create the appropriate FileStorage implementation based on the storage configuration 39 38 fn create_file_storage(storage_config: &str) -> Result<Arc<dyn FileStorage>> { 40 39 if storage_config.starts_with("s3://") {
+1 -1
src/http.rs
··· 273 273 fn format_signers(signer_identities: &[crate::storage::Identity]) -> Vec<String> { 274 274 let handles: Vec<String> = signer_identities 275 275 .iter() 276 - .map(|i| format!("{}", i.handle)) 276 + .map(|i| i.handle.to_string()) 277 277 .collect(); 278 278 279 279 if handles.len() <= 3 {
+1 -4
src/process.rs
··· 173 173 174 174 // Ensure identity is stored 175 175 let document = self.ensure_identity_stored(did).await?; 176 - tracing::debug!(?document, "resolved award DID"); 177 176 178 177 // Get or create badge 179 178 let badge = self.get_or_create_badge(&award_record.badge).await?; 180 179 181 180 let badge_aturi = ATURI::from_str(&award_record.badge.uri)?; 182 - 183 - tracing::debug!(?badge, "processing badge"); 184 181 185 182 let badge_isser_document = self.ensure_identity_stored(&badge_aturi.authority).await?; 186 183 ··· 346 343 atproto_client::com::atproto::repo::GetRecordResponse::Error(simple_error) => { 347 344 Err(ShowcaseError::ProcessBadgeRecordFetchFailed { 348 345 uri: format!("at://{}/community.lexicon.badge.definition/{}", did, rkey), 349 - details: format!("Get record returned an error: {:?}", simple_error), 346 + details: format!("Get record returned an error: {}", simple_error.error_message()), 350 347 }) 351 348 } 352 349 }