Rust SDK – Getting Started¶
Work in Progress
The Rust SDK is currently being refactored. A complete Getting Started guide will be added once the new core APIs are finalized.
Stay tuned — we'll update this document soon!
Installation¶
Add the necessary dependencies to your project's Cargo.toml:
Prerequisites¶
- Rust 1.70 or later (for modern async features)
- Google Cloud project with NotebookLM API enabled
- gcloud CLI installed and authenticated (for simple credential management)
Basic Setup¶
- Authenticate with gcloud
- Set Your Project Number
- Initialize and List Notebooks
Complete Example¶
Here's a complete workflow demonstrating typical API operations.
// 1. Initialize client
// 2. Create a notebook
// 3. Add sources
// 4. Create audio overview
// 5. List your notebooks
// Optional Cleanup: Delete the created notebook
Authentication Options¶
- gcloud CLI (Recommended)
Configuration¶
Environment Variables