This PR adds a CLI to main.rs that allows you to run the redis server and eventually the redis client.
24 lines
268 B
Rust
24 lines
268 B
Rust
pub const DEFAULT_PORT: &str = "6379";
|
|
|
|
pub mod client;
|
|
|
|
mod cmd;
|
|
use cmd::Command;
|
|
|
|
mod conn;
|
|
use conn::Connection;
|
|
|
|
mod frame;
|
|
use frame::Frame;
|
|
|
|
mod kv;
|
|
use kv::Kv;
|
|
|
|
mod parse;
|
|
use parse::{Parse, ParseError};
|
|
|
|
pub mod server;
|
|
|
|
mod shutdown;
|
|
use shutdown::Shutdown;
|