1 unstable release

Uses old Rust 2015

0.1.0 Aug 1, 2016

#4 in #exar


Used in exar-db

AGPL-3.0

23KB
454 lines

Exar DB's Server

A server implementation that uses Exar DB's TCP protocol.

Crates.io

Documentation


lib.rs:

Exar DB's server

This module contains a server implementation that uses Exar DB's TCP protocol.

It uses the one thread per connection model.

Server Initialization

extern crate exar;
extern crate exar_server;

use exar::*;
use exar_server::*;

let db = Database::new(DatabaseConfig::default());

let server_config = ServerConfig::default();
let server = Server::new(server_config.clone(), db).unwrap();

println!("ExarDB's server running at {}", server_config.address());
server.listen();
println!("ExarDB's server shutting down");

Dependencies

~160–400KB