mz_ore_build/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 used in Build Scripts for Materialize.
17//!
18//! This exists separately from the `ore` crate because when cross compiling
19//! (or building with Bazel) build scripts get built for the host architecture,
20//! because that's where they're executed. `ore` has _many_ dependencies yet
21//! nearly none of them are used in build scripts, so we end up building a lot
22//! of unnecessary crates.
23//!
24//! Moving the common utilities for build scripts into this crate, considerably
25//! improves build times.
26
27pub mod codegen;