This will let us use "imports" for what is now "prelude-part".
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
// ==================== namespace preparation ====================
-pub mod imports {
+pub mod crates {
pub use otter;
- pub use otter::imports::*;
+ pub use otter::crates::*;
pub use humantime;
}
-pub use imports::*;
+pub use crates::*;
pub use otter::prelude::*;
pub use std::cell::{RefCell, RefMut};
pub type JsV = serde_json::Value;
pub type MC = MgmtCommand;
-// -------------------- private imports ----------
+// -------------------- private crates ----------
use otter::config::DAEMON_STARTUP_REPORT;
// -------------------- cleanup_notify (signaling) --------------------
pub mod cleanup_notify {
- use super::imports::*;
+ use super::crates::*;
use super::AE;
pub use super::Void; // TODO remove the need for this
#![allow(clippy::redundant_closure_call)]
#![allow(clippy::writeln_empty_string)]
-pub mod imports;
+pub mod crates;
pub mod prelude;
#[path="prelude-part.rs"]
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-pub use crate::imports::*;
+pub use crate::crates::*;
pub use crate::prelude_part::*;
pub type MgmtChannel = ClientMgmtChannel;
-pub use otter::imports::*;
+pub use otter::crates::*;
pub use std::cell::Cell;
pub use std::cell::RefCell;
// management API implementation
-use otter::imports::*;
+use otter::crates::*;
use super::*;
use otter::commands::*;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-pub use otter::imports::*;
+pub use otter::crates::*;
//! This program requires many additional runtime resources, which you are
//! expected to build, along with the daemon, using the Otter `Makefile`.
-use otter::imports::*;
+use otter::crates::*;
-pub mod imports;
+pub mod crates;
pub mod api;
pub mod cmdlistener;
#![allow(clippy::or_fun_call)]
#![allow(clippy::unnecessary_operation)] // trips on #[throws(Explode)]
-pub use otter::imports::*;
+pub use otter::crates::*;
pub use otter::prelude::*;
pub use otter_api_tests::Explode;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::crates::*;
use crate::prelude::*;
#[derive(Debug,Copy,Clone)]
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
+use crate::crates::*;
use crate::prelude::*;
#[path="vpid.rs"] mod vpid;
//! To run an Otter server, you will need to read the
//! [build instructions](https://www.chiark.greenend.org.uk/~ianmdlvl/otter/docs/build.html).
-pub mod imports;
+pub mod crates;
pub mod prelude;
#[path="prelude-part.rs"]
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
-use otter_support::imports::*;
-use otter_base::imports::*;
+use crate::crates::*;
+use otter_support::crates::*;
+use otter_base::crates::*;
use otter_base::prelude_part::*;
pub use vecdeque_stableix::Deque as StableIndexVecDeque;
pub use vecdeque_stableix::Offset as StableIndexOffset;
pub use void::{unreachable, Void, ResultVoidExt, ResultVoidErrExt};
-pub use crate::imports::zipfile::{self, read::ZipFile, result::ZipError};
+pub use crate::crates::zipfile::{self, read::ZipFile, result::ZipError};
use nix::time::ClockId;
pub const CLOCK_REALTIME : ClockId = ClockId::CLOCK_REALTIME ;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-pub use crate::imports::*;
+pub use crate::crates::*;
pub use crate::prelude_part::*;
-pub use otter_base::imports::*;
+pub use otter_base::crates::*;
pub use otter_base::prelude_part::*;
-pub use otter_support::imports::*;
+pub use otter_support::crates::*;
pub use otter_support::prelude_part::*;
// game specs
-use crate::imports::*;
-use otter_support::imports::*;
-use otter_base::imports::*;
+use crate::crates::*;
+use otter_support::crates::*;
+use otter_base::crates::*;
use std::borrow::Cow;
use std::collections::hash_map::HashMap;
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-use crate::imports::*;
-use otter_support::imports::*;
-use otter_base::imports::*;
+use crate::crates::*;
+use otter_support::crates::*;
+use otter_base::crates::*;
use std::fmt::{Debug, Display};
use std::iter::Peekable;
use crate::prelude::*;
-pub use otter_base::imports::extend::ext;
+pub use otter_base::crates::extend::ext;
//========== miscellany ==========
// (roughly in order of implementation length)
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-pub mod imports;
+pub mod crates;
pub mod prelude;
#[path="prelude-part.rs"]
// SPDX-License-Identifier: AGPL-3.0-or-later
// There is NO WARRANTY.
-pub use crate::imports::*;
+pub use crate::crates::*;
pub use crate::prelude_part::*;
-pub use otter_base::imports::*;
+pub use otter_base::crates::*;
pub use otter_base::prelude_part::*;
#![allow(clippy::unused_unit)] // #[wasm_bindgen] produces these?
-use otter_base::imports::*;
+use otter_base::crates::*;
use std::fmt::Display;
use std::collections::hash_map::HashMap;
use thiserror::Error;
use wasm_bindgen::prelude::*;
-use otter_base::imports::serde_json;
+use otter_base::crates::serde_json;
use otter_base::geometry::{PosC,RegionC};
use otter_base::zcoord;