1
1
#![doc = include_str!(".crate-docs.md")]
2
#![cfg_attr(not(feature = "included-from-omnibus"), doc = include_str!("../local-feature-flags.md"))]
3
#![forbid(unsafe_code)]
4
#![warn(
5
    clippy::cargo,
6
    missing_docs,
7
    // clippy::missing_docs_in_private_items,
8
    clippy::pedantic,
9
    future_incompatible,
10
    rust_2018_idioms,
11
)]
12
#![allow(
13
    clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
14
    clippy::option_if_let_else,
15
    clippy::module_name_repetitions,
16
)]
17

            
18
/// Command-line interface helpers.
19
#[cfg(feature = "cli")]
20
pub mod cli;
21
/// Configuration options.
22
pub mod config;
23
mod database;
24
mod error;
25
pub mod jobs;
26
mod open_trees;
27
mod storage;
28
mod tasks;
29
#[cfg(feature = "encryption")]
30
pub mod vault;
31
mod views;
32

            
33
#[cfg(feature = "password-hashing")]
34
pub use argon2;
35
#[cfg(not(feature = "included-from-omnibus"))]
36
pub use bonsaidb_core as core;
37

            
38
pub use self::{
39
    database::{pubsub::Subscriber, Database},
40
    error::Error,
41
    storage::{BackupLocation, Storage, StorageId},
42
};
43

            
44
#[cfg(test)]
45
mod tests;