1 unstable release

Uses old Rust 2015

0.1.0 Apr 15, 2018

#1 in #typesafe

Apache-2.0

12KB

Rincon - ArangoDB Rust driver

Crates.io Docs.rs Apache-2.0 Join the chat

The rincon crate itself does not provide any functionality. It is meant as an entry point for the Rincon project which aims to provide a complete ArangoDB driver for Rust.

The Rincon project provides several crates. You can choose which functionality you want for your project and which level of abstraction you prefer. The separation into several crates allows to only import those crates that are needed for your project.

The provided crates are:

Here is a diagram that depicts the dependencies between the crates:

Crate dependency structure

Getting started

For guides on how to use the Rincon ArangoDB driver check out the documentation of the rincon_session API and the rincon_client API.

Status of the project

Currently not all crates listed above are released yet

The ready and released crates are:

Crates which are planned but are not ready yet:

Which crates should I add as dependencies to my project?

First choose whether you want to use the lower level rincon_client API or the higher level rincon_session_async API. Both of these APIs are asynchronous. That is the methods return Futures (of the Tokio project). If you prefer a synchronous API you might want to use the rincon_session API.

Additionally you need a so called connector to communicate with the ArangoDB server. Connectors are provided by the rincon_connector crate.

To use the low level client API with a provided connector add this to your Cargo.toml:

[dependencies]
rincon_core = "0.1"
rincon_connector = "0.1"
rincon_client = "0.1"

Note: The rincon_client crate provides several optional crate features. See the README of this crate for a list of its crate features and how to use them.

To use the synchronous session API with a provided connector add this to your Cargo.toml:

[dependencies]
rincon_core = "0.1"
rincon_connector = "0.1"
rincon_session = "0.1"

Note: As rincon_session builds on top of rincon_client it re-exports the optional crate features of rincon_client. Thus the same features of rincon_client may be applied to the dependency definition of the rincon_session crate as well. See the README of the rincon_client crate for a list of features and how to use them.

To use the asynchronous session API with a provided connector add this to your Cargo.toml:

[dependencies]
rincon_core = "0.1"
rincon_connector = "0.1"
rincon_session_async = "0.1"

Note: As rincon_session_async builds on top of rincon_client it re-exports the optional crate features of rincon_client. Thus the same features of rincon_client may be applied to the dependency definition of the rincon_session_async crate as well. See the README of the rincon_client crate for a list of features and how to use them.

With the minimal dependencies described above you can write AQL queries as strings. To make use of the typesafe AQL query builder add this dependency to your Cargo.toml:

[dependencies]
rincon_aql = "0.1"
#.. plus rincon dependencies as described above

In applications you will not use the rincon_core crate directly. But if you want to implement your own connector instead of using one of the provided ones the custom implementation shall depend on rincon_core only. rincon_core is also needed to implement a method of the ArangoDB REST API that is not provided by rincon_client yet.

License

Licensed under Apache License, Version 2.0
see LICENSE or http://www.apache.org/licenses/LICENSE-2.0 for details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

No runtime deps