-
Notifications
You must be signed in to change notification settings - Fork 131
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
Adding rust 2 code #179
Conversation
Sorry, I do not know Rust good enough (or at all) to review this |
@havaker can you please have a look? |
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
@tzach please review