20 releases (breaking)

new 0.15.0 Feb 23, 2021
0.14.0 Dec 25, 2020
0.13.0 Dec 4, 2020
0.12.0 Oct 18, 2020
0.4.0 Jul 30, 2020

#188 in Database interfaces

Download history 30/week @ 2020-11-04 11/week @ 2020-11-11 6/week @ 2020-11-18 17/week @ 2020-11-25 23/week @ 2020-12-02 31/week @ 2020-12-09 1/week @ 2020-12-16 18/week @ 2020-12-23 20/week @ 2020-12-30 5/week @ 2021-01-06 28/week @ 2021-01-13 22/week @ 2021-01-20 2/week @ 2021-01-27 4/week @ 2021-02-03 39/week @ 2021-02-10 67/week @ 2021-02-17

92 downloads per month
Used in r2d2_firebird

MIT license


Rust Firebird Client

Build Crate API

A Firebird client library to Rust programing language

How to use



  • Rust Api
  • Dynamic link with fbclient
  • Dynamic loading the fbclient(.dll or .so)
  • ARM support
  • Firebird embedded support
  • Extern this api to ruby
  • Extern this api to lua (in a new repo)


Rust Firebird Client

How to use it

1. Start by choosing the lib variation you want

// To use the offcial ('native') Firebird client .dll/.so/.dylib
// (needs to find dll at build time)
// Or using dynamic loading
// Or using the pure rust implementation

2. Set your connection params

// For a remote server, using a dynamically linked native client
let mut conn = rsfbclient::builder_native()
// Or if you need a embedded/local only access
let mut conn = rsfbclient::builder_native()

You also can choose a string connection configuration

// Using the native Firebird client
// Or using the pure rust implementation

3. Now you can use the lib

let rows = conn.query_iter("select col_a, col_b, col_c from test", ())?;

Simple Connection/Transaction

Sometimes you will need store the Connection and Transaction types into a struct field without care about Firebird Client variation. To do this, you can use the SimpleConnection and SimpleTransaction types.

To use, you only need use the From trait, calling the into() method. Example:

let mut conn: SimpleConnection = rsfbclient::builder_native()

Cargo features

All features can be used at the same time if needed.


Will use the dynamic library of the official fbclient at runtime and compiletime. Used in systems where there is already a firebird client installed and configured.


Can find the official fbclient native library by path at runtime, does not need the library at compiletime. Useful when you need to build in a system without a firebird client installed.


Uses a pure rust implementation of the firebird wire protocol, does not need the native library at all. Useful for cross-compilation and allow a single binary to be deployed without needing to install the firebird client.


~152K SLoC