Skip to main content

risingwave_meta/
lib.rs

1// Copyright 2022 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#![allow(clippy::derive_partial_eq_without_eq)]
16#![recursion_limit = "256"]
17#![feature(trait_alias)]
18#![feature(type_alias_impl_trait)]
19#![feature(map_try_insert)]
20#![feature(error_generic_member_access)]
21#![feature(try_blocks)]
22#![feature(stmt_expr_attributes)]
23#![feature(proc_macro_hygiene)]
24#![feature(custom_test_frameworks)]
25#![test_runner(risingwave_test_runner::test_runner::run_failpont_tests)]
26#![feature(impl_trait_in_assoc_type)]
27#![feature(anonymous_lifetime_in_impl_trait)]
28#![feature(duration_millis_float)]
29#![feature(iterator_try_reduce)]
30#![feature(iterator_try_collect)]
31#![feature(coroutines)]
32#![feature(yield_expr)]
33
34pub mod backup_restore;
35pub mod barrier;
36pub mod controller;
37#[cfg(not(madsim))] // no need in simulation test
38pub mod dashboard;
39pub mod error;
40pub mod hummock;
41pub mod manager;
42pub mod model;
43mod notification;
44pub mod rpc;
45pub mod serving;
46pub mod stream;
47pub mod table_refill;
48pub mod telemetry;
49
50pub use error::{MetaError, MetaResult};
51use risingwave_common::config::MetaStoreConfig;
52pub use rpc::{ElectionClient, ElectionMember};
53
54use crate::manager::MetaOpts;
55
56#[derive(Debug, Clone)]
57pub enum MetaStoreBackend {
58    Mem,
59    Sql {
60        endpoint: String,
61        config: MetaStoreConfig,
62    },
63}