Corn
Pure Socket Text Chat in Rust
-
Text Chat
- Only text for now
-
Web File Server
- Show files and dirs
-
Dynamic Port.
- The port is dynamic
Usage
Package available at crates.io: https://crates.io/crates/corn
Documentation available at https://docs.rs/corn/
Usual way is to cargo build --release in console.
Docs available via cargo doc --no-deps --open.
Examples
Start Chat Server
use start_chat_server;
Note: It‘s a simple socket server, use socket client to chat, just start.
Start Web Server
use start_web_server;
Note: Open the Url in the Web Browser.
Use rustc
cd corn
mkdir -p runtime/chat/rust
rustc src/chat/server.rs -o runtime/chat/rust/rserver
rustc src/chat/client.rs -o runtime/chat/rust/rclient
cd runtime/chat/rust
./rserver
./rclient
corn Bin
todo
Crate also provides corn binary which is helpful to inspect database file in various ways. It can be found after cargo build --release in ./target/release/corn.
Excerpt from man:
Disclaimer
happy to help you there.
MIT License