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

#1924 in HTTP server

Download history 1/week @ 2024-12-14 41/week @ 2025-02-15 26/week @ 2025-02-22

226 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

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();

Local Gateway

Dependencies

~92MB
~1.5M SLoC