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

#232 in HTTP server

Download history 55/week @ 2023-10-29 8/week @ 2023-11-05 52/week @ 2023-11-12 9/week @ 2023-11-19 178/week @ 2023-11-26 50/week @ 2023-12-03 49/week @ 2023-12-10 6/week @ 2023-12-17 98/week @ 2023-12-24 49/week @ 2023-12-31 16/week @ 2024-01-07 7/week @ 2024-01-14 14/week @ 2024-01-21 94/week @ 2024-01-28 54/week @ 2024-02-04 144/week @ 2024-02-11

306 downloads per month
Used in grafbase

Apache-2.0

270KB
5.5K SLoC

Rust 4.5K SLoC // 0.0% comments GraphQL 875 SLoC // 0.1% comments SQL 216 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

~70–115MB
~2M SLoC