Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding rust 2 code #179

Merged
merged 2 commits into from
Jun 9, 2022
Merged

Adding rust 2 code #179

merged 2 commits into from
Jun 9, 2022

Conversation

guy9
Copy link
Collaborator

@guy9 guy9 commented Jun 7, 2022

@tzach please review

@tzach
Copy link
Collaborator

tzach commented Jun 8, 2022

Sorry, I do not know Rust good enough (or at all) to review this

@guy9
Copy link
Collaborator Author

guy9 commented Jun 8, 2022

@havaker can you please have a look?
It's based on what you sent me, and used for this Scylla University lesson:
https://university.scylladb.com/courses/using-scylla-drivers/lessons/rust-and-scylla-prepared-statements-paging-and-retries/

@tzach tzach merged commit 8f60051 into scylladb:master Jun 9, 2022
docker run -p 9042:9042/tcp --name some-scylla --hostname some-scylla -d scylladb/scylla:4.5.0 --smp 1 --memory=750M --overprovisioned 1
```

### Running the RUST Application
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is Rust written in all capital letters?

If you don’t already have Rust and Cargo installed, go ahead and install it using the rustup.rs toolchain:

```bash
cd scylla-code-samples/Rust_Scylla_Driver/ps-logger
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installing Rust toolchain is not local to the scylla-code-samples/Rust_Scylla_Driver/ps-logger directory, there is no need to cd into it.


First create the keyspace and table in cqlsh:

```bash
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ```cql instead of ```bash

```


```bash
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ```cql instead of ```bash

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

First create the keyspace and table in cqlsh:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The chat app creates keyspace & table (if they not exist), so running cqlsh is not needed.

@@ -0,0 +1,53 @@
# Scylla Rust Driver

This lesson covers more . These topics will be explained and demonstrated using the Scylla Rust driver.
Copy link

@havaker havaker Jun 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a space before the dot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants