1
1
//! A programmable document database inspired by `CouchDB` written in Rust.
2
//!
3
//! The `bonsaidb` executable
4

            
5
#![forbid(unsafe_code)]
6
#![warn(
7
    clippy::cargo,
8
    missing_docs,
9
    // clippy::missing_docs_in_private_items,
10
    clippy::nursery,
11
    clippy::pedantic,
12
    future_incompatible,
13
    rust_2018_idioms,
14
)]
15
#![allow(
16
    clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
17
    clippy::option_if_let_else,
18
    clippy::multiple_crate_versions, // TODO custodian-password deps + x25119 deps
19
)]
20

            
21
mod any_connection;
22
mod cli;
23
pub use any_connection::*;
24
use bonsaidb_server::{NoBackend, ServerConfiguration};
25

            
26
#[tokio::main]
27
async fn main() -> anyhow::Result<()> {
28
    cli::run::<NoBackend>(ServerConfiguration::default()).await
29
}