marque_utils/prelude.rs
1// Adapted from code originally in [CocoIndex](https://CocoIndex)
2// Original code from CocoIndex is copyrighted by CocoIndex
3// and licensed under the Apache-2.0 License.
4// SPDX-License-Identifier: Apache-2.0
5// SPDX-FileCopyrightText: 2026 CocoIndex
6//
7// All modifications from the upstream for Marque are copyrighted by Knitli Inc.
8// SPDX-FileCopyrightText: 2026 Knitli Inc. (Marque)
9// SPDX-License-Identifier: LicenseRef-MarqueLicense-1.0
10
11//! The names most marque code wants from this crate.
12//!
13//! Glob-import this module (`use marque_utils::prelude::*`) to bring the
14//! workspace [`Error`] / [`Result`] types, the [`ContextExt`] combinators, and
15//! the `client_*` / `internal_*` bail macros into scope.
16
17pub use crate::error::ApiError;
18pub use crate::error::invariance_violation;
19pub use crate::error::{ContextExt, Error, Result};
20pub use crate::{client_bail, client_error, internal_bail, internal_error};