Memorust

Getting started

Install the toolchain, build Memorust, and connect a client.

Requirements

You need a recent stable Rust toolchain. The crate uses edition 2024, which requires Rust 1.85 or newer. Install it via rustup.

Build and run

git clone https://github.com/robertolima-dev/memorust.git
cd memorust
cargo run        # builds and starts the server on 127.0.0.1:6379

For a production-style build, compile in release mode:

cargo build --release
./target/release/memorust

Connect a client

In another terminal, interact with the server using redis-cli or any Redis client:

redis-cli -p 6379
> PING
PONG
> SET name Roberto
OK
> GET name
"Roberto"
> INFO

Run the tests

cargo test

On this page