Expand description
§Firebase Admin SDK for Rust
This crate provides a Rust implementation of the Firebase Admin SDK, allowing interaction with Firebase services such as Authentication, Cloud Messaging (FCM), Remote Config, and Firestore.
§Modules
auth: Firebase Authentication (User management, ID token verification).messaging: Firebase Cloud Messaging (Send messages, topic management).remote_config: Firebase Remote Config (Get, update, rollback configurations).firestore: Cloud Firestore (Read/Write documents).storage: Cloud Storage (Upload, download, delete files).crashlytics: Firebase Crashlytics (Manage crash reports).
§Usage
The entry point is the FirebaseApp struct. You initialize it with a ServiceAccountKey
(typically loaded from a JSON file), and then access the various services.
use firebase_admin_sdk::{FirebaseApp, yup_oauth2};
async fn example() {
let key = yup_oauth2::read_service_account_key("service-account.json").await.unwrap();
let app = FirebaseApp::new(key);
let auth = app.auth();
let messaging = app.messaging();
}Re-exports§
pub use yup_oauth2;
Modules§
- auth
- Firebase Authentication module.
- core
- crashlytics
- Firebase Crashlytics module.
- firestore
- Cloud Firestore module.
- messaging
- Firebase Cloud Messaging (FCM) module.
- remote_
config - Firebase Remote Config module.
- storage
- Cloud Storage for Firebase module.
Structs§
- Firebase
App - The entry point for the Firebase Admin SDK.