grafbase_local_server/lib.rs
1/*!
2The server crate provides a server with the gateway worker (via miniflare)
3and a bridge server connecting the worker to an sqlite db
4
5# Example
6
7```ignore
8const PORT: u16 = 4000;
9# common::environment::Environment::try_init().unwrap();
10
11// `common::environment::Environment` must be initialized before this
12
13let server_handle = server::start(PORT).unwrap();
14```
15*/
16
17// TODO: make the prior example testable
18
19#![forbid(unsafe_code)]
20
21#[macro_use]
22extern crate log;
23
24mod bridge;
25mod consts;
26mod custom_resolvers;
27mod environment;
28mod error_server;
29mod event;
30mod file_watcher;
31mod servers;
32
33pub mod errors;
34pub mod types;
35
36pub use servers::start;