mz_ore/
lib.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License in the LICENSE file at the
6// root of this repository, or online at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Internal utility libraries for Materialize.
17//!
18//! **ore** (_n_): the raw material from which more valuable materials are extracted.
19//! Modules are included in this crate when they are broadly useful but too
20//! small to warrant their own crate.
21
22#![warn(missing_docs, missing_debug_implementations)]
23#![cfg_attr(nightly_doc_features, feature(doc_cfg))]
24
25#[cfg_attr(nightly_doc_features, doc(cfg(feature = "assert")))]
26#[cfg(feature = "assert")]
27pub mod assert;
28pub mod bits;
29#[cfg_attr(nightly_doc_features, doc(cfg(feature = "bytes")))]
30#[cfg(feature = "bytes")]
31pub mod bytes;
32pub mod cast;
33#[cfg_attr(nightly_doc_features, doc(cfg(feature = "async")))]
34#[cfg(feature = "async")]
35pub mod channel;
36#[cfg_attr(nightly_doc_features, doc(cfg(feature = "cli")))]
37#[cfg(feature = "cli")]
38pub mod cli;
39pub mod collections;
40pub mod env;
41pub mod error;
42pub mod fmt;
43#[cfg_attr(nightly_doc_features, doc(cfg(feature = "async")))]
44#[cfg(feature = "async")]
45pub mod future;
46pub mod graph;
47pub mod hash;
48pub mod hint;
49#[cfg(feature = "id_gen")]
50pub mod id_gen;
51pub mod iter;
52pub mod lex;
53#[cfg_attr(
54    nightly_doc_features,
55    doc(cfg(all(feature = "bytes", feature = "region")))
56)]
57#[cfg(all(feature = "bytes", feature = "region", feature = "tracing"))]
58pub mod lgbytes;
59#[cfg_attr(nightly_doc_features, doc(cfg(feature = "metrics")))]
60#[cfg(feature = "metrics")]
61pub mod metrics;
62#[cfg_attr(nightly_doc_features, doc(cfg(feature = "network")))]
63#[cfg(feature = "network")]
64pub mod netio;
65pub mod now;
66pub mod num;
67pub mod option;
68pub mod overflowing;
69#[cfg(not(target_family = "wasm"))]
70#[cfg(feature = "panic")]
71pub mod panic;
72pub mod path;
73pub mod permutations;
74#[cfg(feature = "process")]
75pub mod process;
76#[cfg(feature = "region")]
77pub mod region;
78#[cfg_attr(nightly_doc_features, doc(cfg(feature = "process")))]
79pub mod result;
80#[cfg_attr(nightly_doc_features, doc(cfg(feature = "async")))]
81#[cfg(feature = "async")]
82pub mod retry;
83pub mod serde;
84#[cfg_attr(nightly_doc_features, doc(cfg(feature = "stack")))]
85#[cfg(feature = "stack")]
86pub mod stack;
87pub mod stats;
88pub mod str;
89#[cfg_attr(nightly_doc_features, doc(cfg(feature = "async")))]
90#[cfg(feature = "async")]
91pub mod task;
92#[cfg_attr(nightly_doc_features, doc(cfg(any(test, feature = "test"))))]
93#[cfg(any(test, feature = "test"))]
94pub mod test;
95pub mod thread;
96pub mod time;
97#[cfg_attr(nightly_doc_features, doc(cfg(feature = "tracing")))]
98#[cfg(feature = "tracing")]
99pub mod tracing;
100pub mod url;
101pub mod vec;
102
103pub use mz_ore_proc::{instrument, static_list, test};
104
105pub use overflowing::Overflowing;
106
107#[doc(hidden)]
108pub mod __private {
109    #[cfg(feature = "tracing")]
110    pub use tracing;
111}
112
113// Epoch: 1
114//
115// Bump this whenever we need to change the hash of a build without changing any code.