You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
Rust
33 lines
1.1 KiB
Rust
4 years ago
|
/*
|
||
4 years ago
|
* Created on Mon Jul 20 2020
|
||
4 years ago
|
*
|
||
4 years ago
|
* This file is a part of Skybase
|
||
4 years ago
|
* Copyright (c) 2020, Sayan Nandan <ohsayan at outlook dot com>
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
4 years ago
|
*
|
||
4 years ago
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
4 years ago
|
*
|
||
4 years ago
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
*/
|
||
|
|
||
4 years ago
|
//! The core library for the Skybase
|
||
4 years ago
|
//!
|
||
4 years ago
|
//! This contains modules which are shared by both the `cli` and the `server` modules
|
||
|
|
||
|
pub mod terrapipe;
|
||
4 years ago
|
pub mod util;
|
||
4 years ago
|
use std::error::Error;
|
||
4 years ago
|
/// A generic result
|
||
4 years ago
|
pub type TResult<T> = Result<T, Box<dyn Error>>;
|
||
4 years ago
|
/// The size of the read buffer in bytes
|
||
|
pub const BUF_CAP: usize = 8 * 1024; // 8 KB per-connection
|