From: Ian Jackson Date: Sun, 14 Feb 2021 21:07:41 +0000 (+0000) Subject: dependency reorganisation: Move anyhow X-Git-Tag: otter-0.4.0~487 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b3adff1f2fca2d443ca9429346e29dfb0c891c94;p=otter.git dependency reorganisation: Move anyhow NFC Signed-off-by: Ian Jackson --- diff --git a/Cargo.lock.example b/Cargo.lock.example index e8ce48d1..4f58f32f 100644 --- a/Cargo.lock.example +++ b/Cargo.lock.example @@ -1708,7 +1708,6 @@ dependencies = [ name = "otter-webdriver-tests" version = "0.0.1" dependencies = [ - "anyhow", "boolinator", "env_logger", "fehler", diff --git a/src/imports.rs b/src/imports.rs new file mode 100644 index 00000000..778f1973 --- /dev/null +++ b/src/imports.rs @@ -0,0 +1,5 @@ +// Copyright 2020-2021 Ian Jackson and contributors to Otter +// SPDX-License-Identifier: AGPL-3.0-or-later +// There is NO WARRANTY. + +pub use anyhow; diff --git a/src/lib.rs b/src/lib.rs index cee9fc43..b46f7aa4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,9 @@ #![allow(clippy::redundant_closure_call)] +pub mod imports; +pub mod prelude; + pub mod accounts; pub mod authproofs; pub mod commands; @@ -13,7 +16,6 @@ pub mod error; pub mod gamestate; pub mod global; pub mod hidden; -pub mod prelude; pub mod keydata; pub mod mgmtchannel; pub mod nwtemplates; diff --git a/wdriver.rs b/wdriver.rs index a18862d4..da893542 100644 --- a/wdriver.rs +++ b/wdriver.rs @@ -2,6 +2,8 @@ // SPDX-License-Identifier: AGPL-3.0-or-later // There is NO WARRANTY. +use otter::imports::*; + pub use anyhow::{anyhow, ensure, Context}; pub use boolinator::Boolinator; pub use fehler::{throw, throws}; @@ -253,6 +255,7 @@ impl Substitutor for DirSubst { } mod cleanup_notify { + use otter::imports::*; use anyhow::Context; use fehler::{throw, throws}; use libc::_exit; diff --git a/wdriver/Cargo.toml b/wdriver/Cargo.toml index e0a2b8cb..2f71537e 100644 --- a/wdriver/Cargo.toml +++ b/wdriver/Cargo.toml @@ -13,7 +13,6 @@ edition = "2018" [dependencies] otter = { path = ".." } -anyhow = "1" boolinator = "2" env_logger = "0.8" fehler = "1"