Skip to content

Commit e5ecf3d

Browse files
authored
Publish 1.0.0 (#36)
1 parent d58ec6f commit e5ecf3d

File tree

3 files changed

+24
-42
lines changed

3 files changed

+24
-42
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rsmgclient"
3-
version = "0.2.0"
3+
version = "1.0.0"
44
description = "Memgraph database adapter for Rust programming language."
55
authors = ["Memgraph Contributors <[email protected]>"]
66
license = "Apache-2.0"

README.md

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,46 @@
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
3028
cargo 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,
3634
you 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
4843
cargo build
44+
# Run Memgraph based on the quick start guide
4945
cargo test
5046
```
5147

@@ -54,9 +50,9 @@ cargo test
5450
Online documentation can be found on [docs.rs
5551
pages](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
6258
use rsmgclient::{ConnectParams, Connection, MgError, Value};

src/main.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
// Copyright (c) 2016-2020 Memgraph Ltd. [https://memgraph.com]
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
14-
151
use rsmgclient::{ConnectParams, Connection, MgError, Value};
162

173
fn execute_query() -> Result<(), MgError> {

0 commit comments

Comments
 (0)