[go: up one dir, main page]

corn 0.1.0

corn is socket server free to chat.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 8.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zwdart

Corn

Pure Socket Text Chat in Rust

  • Text Chat

    • Only text for now
  • ‌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

Create db and put something

use corn::start_server;

fn main() {
    println!("Hello, world!");
    start_server()
}

Note: It‘s simple chat server, just start.

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:

USAGE:
    corn [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    info     Prints some info

Disclaimer

happy to help you there.


MIT License