Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. tiberius

tiberius

Apache-2.0Rust

A native Microsoft SQL Server (TDS) client for Rust with async support and protocol independence.

GitHubGitHub
427 stars167 forks0 contributors

What is tiberius?

Tiberius is a native Microsoft SQL Server client for Rust that implements the TDS protocol. It enables Rust applications to connect to SQL Server databases asynchronously, supporting various network runtimes and encryption methods. The driver focuses on protocol correctness and performance without bundling higher-level features like connection pooling or ORM.

Target Audience

Rust developers building applications that need to interact with Microsoft SQL Server databases, especially those requiring async I/O and cross-platform compatibility.

Value Proposition

Developers choose Tiberius for its pure Rust implementation, protocol independence, and async-first design. It provides a reliable, performant alternative to ODBC or other bindings, with support for modern SQL Server features and flexible TLS options.

Overview

TDS 7.2+ (Microsoft SQL Server) driver for Rust

Use Cases

Best For

  • Building async Rust backends that connect to SQL Server
  • Cross-platform applications needing SQL Server support on Linux, Windows, or macOS
  • Projects requiring protocol-level control over database connections
  • Implementing custom connection pooling or query building layers
  • Environments where native TLS or rustls encryption is preferred
  • Applications that need to support SQL Server versions from 2005 to 2022

Not Ideal For

  • Projects needing out-of-the-box connection pooling without additional dependencies
  • Teams wanting an ORM or query builder for rapid application development
  • Environments on macOS where native TLS must be used without workarounds like rustls
  • Applications with simple CRUD needs that prefer a more integrated, batteries-included database driver

Pros & Cons

Pros

Protocol Independence

Works with any async runtime (Tokio, async-std, smol) via sockets implementing AsyncRead/AsyncWrite, allowing flexibility without being tied to a specific network stack.

Async-First Design

Fully asynchronous network I/O enables high-performance database interactions, leveraging Rust's async ecosystem for scalable applications.

Flexible TLS Options

Supports both native OS TLS and rustls, with feature flags to choose or disable encryption, accommodating different security and dependency needs.

Cross-Platform Support

Tested on Linux, Windows, and macOS with SQL Server versions from 2005 to 2022, ensuring broad compatibility for diverse environments.

Cons

No Built-In Abstractions

Lacks connection pooling, query building, and ORM features, requiring additional crates and boilerplate code for common database tasks.

Complex Integrated Auth Setup

On Unix-like systems, enabling integrated authentication requires GSSAPI/Kerberos libraries and domain configuration, which can be cumbersome and error-prone.

TLS Compatibility Issues

On macOS, the native-tls feature may not work well with SQL Server, forcing the use of rustls or vendored-openssl, adding complexity and potential maintenance overhead.

Frequently Asked Questions

Quick Stats

Stars427
Forks167
Contributors0
Open Issues100
Last commit4 months ago
CreatedSince 2020

Tags

#database-driver#mssql#tds-protocol#async#sql-server#client-library#rust#network-protocol

Built With

R
Rust

Included in

Rust56.6k
Auto-fetched 17 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