Crates.io | bonsaidb-client |
lib.rs | bonsaidb-client |
version | 0.5.0 |
source | src |
created_at | 2022-01-19 17:53:55.032597 |
updated_at | 2023-10-05 17:59:57.833358 |
description | Client for accessing BonsaiDb servers. |
homepage | https://bonsaidb.io/ |
repository | https://github.com/khonsulabs/bonsaidb |
max_upload_size | |
id | 516977 |
size | 115,567 |
Networked client for bonsaidb-server
.
This crate supports two methods for accessing a BonsaiDb server: QUIC and WebSockets.
QUIC is a new protocol built atop UDP. It is designed to operate more reliably than TCP, and features TLS built-in at the protocol level. WebSockets are an established protocol built atop TCP and HTTP.
BlockingClient
provides access to BonsaiDb by implementing
the StorageConnection
trait.
AsyncClient
provides access to BonsaiDb by implementing
the AsyncStorageConnection
trait.
While this project is alpha, we are actively adopting the current version of
Rust. The current minimum version is 1.70
.
This crate supports compiling to WebAssembly. When using WebAssembly, the only protocol available is WebSockets.
We have a fully deployed example application available that can be downloaded and run locally. This example is confirmed to work using Firefox on a local machine, or any modern browser when accessing https://minority-game.gooey.rs/.
0.0.0.0
instead of localhost
, for example, to circumvent these protections.By default, the full
feature is enabled.
full
: Enables trusted-dns
and websockets
trusted-dns
: Enables using trust-dns for DNS resolution. If not
enabled, all DNS resolution is done with the OS's default name resolver.websockets
: Enables WebSocket
support for bonsaidb-client
.password-hashing
: Enables the ability to use password authentication
using Argon2.token-authentication
: Enables the ability to authenticate using
authentication tokens, which are similar to API keys.tracing
: Enables tracing
annotations on some functions and dependencies.This project, like all projects from Khonsu Labs, is open-source. This repository is available under the MIT License or the Apache License 2.0.
To learn more about contributing, please see CONTRIBUTING.md.