EdgeDB Rust Client
EdgeDB maintains a client library for Rust. View the full documentation.
The “hello world” of the Rust EdgeDB client is as follows:
Copy
#[tokio::main]
async fn main() {
let conn = edgedb_tokio::create_client()
.await
.expect("Client should have initiated");
let val: i64 = conn
.query_required_single("select 7*8", &())
.await
.expect("Query should have worked");
println!("7*8 is: {val}");
}