Benign rust 31 installs download unavailable

ferrox-payments-google 0.8.0

“Google Pay API client and in-app purchase verification adapter for Ferrox.”

Near-zero recent downloads for registry packagePackage under two months old
SHA-25601bc0d95ebbc5b06bed9de8443005468870c07008ad3f05d938b5d17aa96cf9a
MaleculeH(Cm)Md(In)

Evidence

imports reqwest::Client lib.rs · lines 3–12
3:19… ts-google` provides Google Pay API verification and Google Play Store in-app purchase validation for backend services.
4
5use reqwest::Client;
6use serde::{Deserialize, Serialize};
7use ferrox_errors::AppError;
8
9#[derive(Clone)]
10pub struct GooglePlayClient {
11 package_name: String,
12 http_client …
English function-word token "with" lib.rs · lines 30–33
30:4… }
31
32 /// Verifies an in-app purchase token with Google Play Developer API
33 pub async fn verify_purchase(&self, product_id: &str, token: &st …
English function-word token "the" lib.rs · lines 1–8
1:25… rrox-errors`)
2//!
3//! `ferrox-errors` defines the unified error handling strategy for Ferrox applications. It provides the standard
4//! `AppError` enum and implements Axum's `IntoResponse` trait to automatically convert application errors into
5//! consistent JSON responses with standard HTTP status codes.
6//!
7//! ## Rationale & Design
8//! In enterprise Rust microservic …
imports axum::http::StatusCode lib.rs · lines 26–41
⋯4 lines
30
31use axum::{
32 http::StatusCode,
33 response::{IntoResponse, Response},
34 Json,
35};
36use serde::Serialize;
37use thiserror::Error;
38
39/// A standard global error type for the application.
40#[derive(Debug, Error)]
41pub enum Ap …
imports super::* lib.rs · lines 101–115
101:39… d: Provides global AppError and IntoResponse for Axum.");
102}
103
104#[cfg(test)]
105mod tests {
106 use super::*;
107 use axum::response::IntoResponse;
108 use axum::http::StatusCode;
109
110 #[test]
111 fn test_error_formatting() {
112 let err = AppError::NotFound("User".into());
113 assert_eq!(err.to_string(), "Not Found: User");
114
115 let err = AppError::ValidationError("Invalid em …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.