Crates.io | typedb-driver |
lib.rs | typedb-driver |
version | 2.29.2-rc0 |
source | src |
created_at | 2023-09-28 09:10:36.462546 |
updated_at | 2024-11-04 12:50:48.203199 |
description | TypeDB Rust Driver |
homepage | https://github.com/vaticle/typedb-driver |
repository | https://github.com/vaticle/typedb-driver |
max_upload_size | |
id | 985712 |
size | 450,286 |
To learn about the mechanism that a TypeDB Driver uses to set up communication with databases running on the TypeDB Server, refer to the Clients Overview.
The TypeDB Driver for Rust provides a fully async API that supports multiple async runtimes or a synchronous interface gated by the sync
feature.
To learn about the methods available for executing queries and retrieving their answers using Driver Rust, refer to the API Reference.
typedb-driver
through Cargo:cargo add typedb-driver
rust/tests/integration
for examples of usage.Note: You don't need to compile TypeDB Driver from source if you just want to use it in your code. See the "Quickstart" section above.
Make sure you have Bazel installed on your machine.
Build the library:
a) to build the native/raw rlib:
bazel build //rust:typedb_driver
The rlib will be produced at: bazel-bin/libtypedb_driver-{hash}.rlib
.
b) to build the crate for a Cargo project:
bazel build //rust:assemble_crate
The Cargo crate will be produced at:
bazel-bin/assemble_crate.crate
You can then unzip this crate to retrieve Cargo.toml
. Please note: this process has not yet been thoroughly tested. The generated Cargo.toml
may not be fully correct. See the Cargo.toml
of the typedb-driver
crate for reference.