26 releases (13 stable)

Uses new Rust 2024

new 1.11.0 Jun 3, 2026
1.9.0 Apr 14, 2026
1.8.0 Mar 26, 2026
1.3.0 Dec 10, 2025
0.1.0 Feb 18, 2025

#2580 in Network programming

Apache-2.0

4.5MB
82K SLoC

Google Cloud Client Libraries for Rust - AlloyDB API

AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance.

AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.

The client library types and functions are stable and not expected to change. Please note that Google Cloud services do change from time to time. The client libraries are designed to preserve backwards compatibility when the service changes in compatible ways. For example, adding RPCs, or fields to messages should not introduce breaking changes to the client libraries.

Quickstart

The main types to work with this crate are the clients:

Features

  • default-rustls-provider: enabled by default. Use the default rustls crypto provider (aws-lc-rs) for TLS and authentication. Applications with specific requirements for cryptography (such as exclusively using the ring crate) should disable this default and call rustls::crypto::CryptoProvider::install_default().

More Information

Dependencies

~17–44MB
~702K SLoC