diff options
| author | codecrafters-bot <hello@codecrafters.io> | 2025-07-14 21:06:11 +0000 |
|---|---|---|
| committer | codecrafters-bot <hello@codecrafters.io> | 2025-07-14 21:06:11 +0000 |
| commit | 148811deccd803be7f9c4a668974afecd4e97f4e (patch) | |
| tree | 9eebb93b2994633e7fb42ec73df34b036fd3d3d8 /src/main.rs | |
| download | redis-rust-148811deccd803be7f9c4a668974afecd4e97f4e.tar.xz redis-rust-148811deccd803be7f9c4a668974afecd4e97f4e.zip | |
init [skip ci]
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..b200e70 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use std::net::TcpListener; + +fn main() { + // You can use print statements as follows for debugging, they'll be visible when running tests. + println!("Logs from your program will appear here!"); + + // Uncomment this block to pass the first stage + // + // let listener = TcpListener::bind("127.0.0.1:6379").unwrap(); + // + // for stream in listener.incoming() { + // match stream { + // Ok(_stream) => { + // println!("accepted new connection"); + // } + // Err(e) => { + // println!("error: {}", e); + // } + // } + // } +} |
