Skip to main content

risingwave_batch_executors/
lib.rs

1// Copyright 2024 RisingWave Labs
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 at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Batch executor implementations.
16//!
17//! To enable executors in this crate, add the following line to your code:
18//!
19//! ```
20//! risingwave_batch_executors::enable!();
21//! ```
22
23#![allow(clippy::derive_partial_eq_without_eq)]
24#![feature(exact_size_is_empty)]
25#![cfg_attr(coverage, feature(coverage_attribute))]
26#![feature(coroutines)]
27#![feature(proc_macro_hygiene, stmt_expr_attributes)]
28#![feature(iterator_try_collect)]
29#![recursion_limit = "256"]
30#![feature(allocator_api)]
31#![feature(iter_from_coroutine)]
32#![feature(used_with_arg)]
33
34pub mod executor;
35pub use executor::*;
36pub use risingwave_batch::{error, exchange_source, execution, monitor, spill, task};
37
38#[macro_use]
39extern crate tracing;
40#[macro_use]
41extern crate risingwave_common;
42
43#[cfg(test)]
44risingwave_expr_impl::enable!();
45
46/// Enable executors in this crate.
47#[macro_export]
48macro_rules! enable {
49    () => {
50        use risingwave_batch_executors as _;
51    };
52}