44 releases (18 breaking)
0.19.2 | May 12, 2023 |
---|---|
0.18.13 | May 9, 2023 |
0.18.0-rc.4 | Mar 31, 2023 |
0.14.1 | Dec 22, 2022 |
0.3.0 | Jul 25, 2022 |
#1330 in HTTP server
Used in grafbase
270KB
5.5K
SLoC
Local Gateway
lib.rs
:
The local-gateway crate provides a local backend for Grafbase developer tools
Example
use backend::server_api::start_server;
# common::environment::Environment::try_init().unwrap();
const PORT: Option<u16> = Some(4000);
const SEARCH: bool = true;
// `common::environment::Environment` must be initialized before this
let (server_port, server_handle) = start_server(PORT, SEARCH).unwrap();
Dependencies
~90MB
~1.5M SLoC