Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. cassandra-rs

cassandra-rs

Apache-2.0Rust3.0.2

A maintained Rust driver for Apache Cassandra, wrapping the DataStax C/C++ driver with a safe and modern API.

GitHubGitHub
144 stars56 forks0 contributors

What is cassandra-rs?

cassandra-cpp is a Rust driver for Apache Cassandra that provides a safe and modern API for interacting with Cassandra databases using CQL. It wraps the DataStax C/C++ driver, offering Rust developers a maintained and idiomatic way to perform database operations with async support and sound iterator implementations.

Target Audience

Rust developers building applications that require interaction with Apache Cassandra databases, particularly those needing a reliable and safe driver with modern async capabilities.

Value Proposition

Developers choose cassandra-cpp because it is a maintained fork of an unproject, addresses soundness issues in the API, and provides a safe wrapper around the robust DataStax C/C++ driver with full async support.

Overview

Cassandra (CQL) driver for Rust, using the DataStax C/C++ driver under the covers.

Use Cases

Best For

  • Building async Rust applications that query Apache Cassandra
  • Migrating from older Cassandra Rust drivers to a maintained solution
  • Ensuring soundness and safety in Cassandra database interactions
  • Leveraging the full feature set of the DataStax C/C++ driver from Rust
  • Developing data-intensive services with non-blocking database access
  • Integrating Cassandra into Rust microservices or distributed systems

Not Ideal For

  • Projects requiring quick, dependency-free installation without manual C++ driver setup
  • Teams preferring pure Rust drivers to avoid C/C++ bindings and FFI complexities
  • Applications that frequently reuse database statements across executions (statements are consumed on execute)
  • Environments where Dockerized development or specific library paths aren't feasible

Pros & Cons

Pros

Modern Async Support

Uses std::future and async/await, enabling seamless integration with Rust's async ecosystem for non-blocking database operations.

Sound Iterator Design

Implements a lending iterator API that prevents data invalidation, fixing a critical soundness issue from earlier versions and enhancing safety.

Enhanced Session Safety

Associates statements with specific sessions, reducing resource leaks and errors like BatchSessionMismatch, as highlighted in the version 2.0 changes.

Comprehensive Driver Coverage

Wraps the full DataStax C/C++ driver, exposing features like SSL, batches, and prepared statements without sacrificing functionality.

Cons

Complex Installation Process

Requires manual installation of the DataStax C/C++ driver with platform-specific steps, making setup error-prone and time-consuming compared to crates with bundled dependencies.

Frequent Breaking Changes

Major versions (e.g., 2.0 and 3.0) introduce API breaks, such as the lending iterator and session-associated statements, necessitating significant code migrations.

Dependency on C++ Ecosystem

Relies on an external C++ library, leading to potential build complexities, FFI overhead, and compatibility issues that pure Rust alternatives avoid.

Frequently Asked Questions

Quick Stats

Stars144
Forks56
Contributors0
Open Issues15
Last commit2 years ago
CreatedSince 2017

Tags

#database-driver#no-sql#async#data-stax#rust#cql#apache-cassandra#distributed-database

Built With

R
Rust

Included in

Rust56.6k
Auto-fetched 18 hours ago

Related Projects

QdrantQdrant

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

Stars33,545
Forks2,520
Last commit21 hours ago
SurrealDBSurrealDB

A scalable, distributed, collaborative, document-graph database, for the realtime web

Stars32,748
Forks1,311
Last commit18 days ago
RustFSRustFS

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

Stars30,153
Forks1,326
Last commit19 hours ago
TursoTurso

A SQL database in Rust: SQLite-compatible, now also speaking Postgres (experimental). The LLVM of databases.

Stars23,381
Forks1,201
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub