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::pedantic,
11
    future_incompatible,
12
    rust_2018_idioms,
13
)]
14
#![allow(
15
    clippy::missing_errors_doc, // TODO clippy::missing_errors_doc
16
    clippy::option_if_let_else,
17
    clippy::multiple_crate_versions, // TODO custodian-password deps + x25119 deps
18
)]
19

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

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