| Crates.io | corn |
| lib.rs | corn |
| version | 0.2.0 |
| created_at | 2025-09-01 04:25:13.775746+00 |
| updated_at | 2025-09-08 08:24:58.068981+00 |
| description | corn is a socket server free to chat & a web server display files |
| homepage | https://www.dart.xin |
| repository | https://github.com/zwdart/corn |
| max_upload_size | |
| id | 1819111 |
| size | 16,606 |
Text Chat
Web File Server
Dynamic Port.
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.
use corn::start_chat_server;
fn main() {
println!("Hello, world!");
start_chat_server()
}
Note: It‘s a simple socket server, use socket client to chat, just start.
use corn::start_web_server;
fn main() {
println!("Hello, world!");
start_web_server()
}
Note: Open the Url in the Web Browser.
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
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:
USAGE:
corn [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
info Prints some info
happy to help you there.
MIT License