grafbase_local_backend/
lib.rs

1/*!
2The local-gateway crate provides a local backend for Grafbase developer tools
3
4# Example
5
6```ignore
7use backend::server_api::start_server;
8# common::environment::Environment::try_init().unwrap();
9
10const PORT: Option<u16> = Some(4000);
11const SEARCH: bool = true;
12
13// `common::environment::Environment` must be initialized before this
14
15let (server_port, server_handle) = start_server(PORT, SEARCH).unwrap();
16```
17*/
18
19// TODO: make the prior example testable
20
21#![forbid(unsafe_code)]
22
23mod consts;
24
25pub mod api;
26pub mod errors;
27pub mod project;
28pub mod server_api;
29pub mod types;