22
33[ ![ ] ( https://github.com/memgraph/rsmgclient/workflows/CI/badge.svg )] ( https://github.com/memgraph/rsmgclient/actions )
44
5- ` rsmgclient ` is a Memgraph database adapter for Rust programming language.
5+ ` rsmgclient ` is [ Memgraph] ( https://memgraph.com/ ) database adapter for Rust
6+ programming language. ` rsmgclient ` crate is the current implementation of the
7+ adapter. It is implemented as a wrapper around
8+ [ mgclient] ( https://github.com/memgraph/mgclient ) , the official Memgraph C/C++
9+ client library.
610
7- rsmgclient crate is the current implementation of the adapter. It is
8- implemented as a wrapper around
9- [ mgclient] ( https://github.com/memgraph/mgclient ) , the official Memgraph client
10- library.
11+ ## Installation
1112
12- ## Prerequisites
13-
14- ### Installation
15-
16- ` rsmgclient ` is a wrapper around the
17- [ mgclient] ( https://github.com/memgraph/mgclient ) Memgraph client library. To
18- install it from sources you will need:
13+ ### Prerequisites
1914
2015- [ Rust] ( https://doc.rust-lang.org/cargo/getting-started/installation.html )
2116 1.42.0 or above
22- - A C compiler supporting C11 standard
23- - [ Memgraph] ( https://docs.memgraph.com/memgraph/quick-start )
17+ - Prerequisites of [ mgclient] ( https://github.com/memgraph/mgclient ) :
18+ - A C compiler supporting C11 standard
19+ - CMake 3.8 or newer
20+ - OpenSSL 1.0.2 or newer
2421
25- Once prerequisites are met, if you want to use it as library for your own Rust
26- project, you can install rsmgclient using ` cargo ` to download it from
27- crates.io:
22+ ### Installing from crates.io
23+
24+ Once prerequisites are met, if you want to use ` rsmgclient ` as library for your
25+ own Rust project, you can install it by using ` cargo ` :
2826
2927``` bash
3028cargo install rsmgclient
3129```
3230
33- ### Building from source
31+ ### Building from Source
3432
35- To use ` rsmgclient ` for contributing or just looking closely how it is made,
33+ To contribute into ` rsmgclient ` or just looking closely how it is made,
3634you will need:
3735
3836- Cloned [ rsmgclient] ( https://github.com/memgraph/rsmgclient ) repository
39- - [ Rust] ( https://doc.rust-lang.org/cargo/getting-started/installation.html )
40- 1.42.0-nightly or above
41- - A C compiler supporting C11 standard
42- - [ Memgraph] ( https://docs.memgraph.com/memgraph/quick-start )
37+ - [ Memgraph Quick Start Guide] ( https://memgraph.com/docs/memgraph/quick-start )
4338
44- Once rsmgclient is cloned, you will need to build it and then you can run
45- the test suite to verify it is working correctly.
39+ Once ` rsmgclient ` is cloned, you will need to build it and then you can run
40+ the test suite to verify it is working correctly:
4641
4742``` bash
4843cargo build
44+ # Run Memgraph based on the quick start guide
4945cargo test
5046```
5147
@@ -54,9 +50,9 @@ cargo test
5450Online documentation can be found on [ docs.rs
5551pages] ( https://docs.rs/rsmgclient/ ) .
5652
57- ## Code sample
53+ ## Code Sample
5854
59- Here is an example showing some of the basic commands:
55+ ` src/main.rs ` is an example showing some of the basic commands:
6056
6157``` rust
6258use rsmgclient :: {ConnectParams , Connection , MgError , Value };
0 commit comments