use rocket::response::Content;
use rocket_contrib::serve::StaticFiles;
-use otter::imports::*;
+use otter::prelude::*;
#[derive(Serialize,Debug)]
struct FrontPageRenderContext {
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
use parking_lot::{Mutex, const_mutex, MutexGuard};
//---------- acl handling ----------
pub mod loaded_acl {
- use crate::imports::*;
+ use crate::prelude::*;
use authproofs::*;
pub trait Perm: FromPrimitive + ToPrimitive +
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
#[derive(Copy,Clone,Debug)]
pub struct Global;
use argparse::action::{Action,IFlagAction,IArgAction};
use derive_more::Display;
+use otter::prelude::*;
use otter::commands::*;
-use otter::imports::*;
type APE = ArgumentParseError;
type E = anyhow::Error;
the <a href="/_/src/">source code</a>.
"##;
-pub use otter::imports::*;
+pub use otter::prelude::*;
pub use shapelib::*;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
pub type MC = MgmtCommand;
pub type MGI = MgmtGameInstruction;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
pub const EXIT_SPACE : i32 = 2;
pub const EXIT_NOTFOUND : i32 = 4;
// SPDX-License-Identifier: MIT-0 OR AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
#[derive(Debug)]
pub struct DebugReader<T:Read>(pub T, pub ClientId);
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
#[derive(Error,Debug)]
pub enum OnlineError {
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
// ---------- newtypes and type aliases ----------
#![allow(clippy::let_and_return)]
-use crate::imports::*;
+use crate::prelude::*;
use slotmap::dense as sm;
use std::sync::PoisonError;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
use slotmap::secondary;
#![allow(clippy::many_single_char_names)]
-use crate::imports::*;
+use crate::prelude::*;
type SKD = slotmap::KeyData;
pub mod gamestate;
pub mod global;
pub mod hidden;
-pub mod imports;
+pub mod prelude;
pub mod keydata;
pub mod mgmtchannel;
pub mod nwtemplates;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
use crate::commands::*;
#[derive(Debug,Error)]
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
use parking_lot::MappedRwLockReadGuard;
use parking_lot::{const_rwlock, RwLock, RwLockReadGuard};
// pieces
-use crate::imports::*;
+use crate::prelude::*;
use piece_specs::SimpleCommon;
//! the provided `library/wikimedia.toml` and `library/edited.toml`,
//! which demonstrate the use of the various features.
-pub use crate::imports::*;
+pub use crate::prelude::*;
#[doc(hidden)] pub type LLE = shapelib::LibraryLoadError;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-pub use crate::imports::*;
+pub use crate::prelude::*;
pub use crate::shapelib_toml::*;
use parking_lot::{const_rwlock, RwLock};
pub mod pos_traits {
use std::ops::{Add,Sub,Mul,Neg,AddAssign,SubAssign};
- use crate::imports::*;
+ use crate::prelude::*;
impl<T:Add<T,Output=T>+Copy+Clone+Debug> Add<PosC<T>> for PosC<T> {
type Output = PosC<T>;
pub mod implementation {
use super::*;
- use crate::imports::*;
+ use crate::prelude::*;
type AS = AccountScope;
type TPS = TablePlayerSpec;
#![allow(clippy::while_let_loop)]
#![allow(clippy::blocks_in_if_conditions)]
-use crate::imports::*;
+use crate::prelude::*;
use vecdeque_stableix::Offset as StableIndexOffset;
use std::ops::Neg;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
use parking_lot::{const_rwlock, RwLock};
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::prelude::*;
pub const SVG_SCALE: f64 = 6.;
// update messages from server to client
-use crate::imports::*;
+use crate::prelude::*;
#[allow(non_camel_case_types)] type PUE_P = PreparedUpdateEntry_Piece;
#[allow(non_camel_case_types)] type TUE_P<'u> = TransmitUpdateEntry_Piece<'u>;