postrust-server 0.4.0

PostgREST-compatible REST and GraphQL API server for PostgreSQL, built on Axum
Documentation

postrust-server

PostgREST-compatible REST and GraphQL API server for PostgreSQL, built on Axum.

The binary most users want. Installs as postrust.

  • Serves the REST API generated from your database schema, plus GraphQL and an optional admin UI.
  • Ships the postrust binary -- a single executable with no runtime dependencies.
  • Configured entirely through environment variables.

Install

cargo install postrust-server --features admin-ui

DATABASE_URL="postgres://user:pass@localhost:5432/mydb" \
  PGRST_DB_ANON_ROLE=web_anon \
  postrust

Part of Postrust

Postrust turns a PostgreSQL database into a REST and GraphQL API. It is published as a set of crates so you can depend on only the part you need:

Crate Role Docs
postrust-server (this crate) HTTP server docs.rs
postrust-core Engine docs.rs
postrust-sql SQL builder docs.rs
postrust-auth Authentication docs.rs
postrust-response Response formatting docs.rs
postrust-graphql GraphQL docs.rs
postrust-lambda AWS Lambda docs.rs
postrust-worker Cloudflare Workers docs.rs
postrust-proxy Reverse proxy docs.rs

Links

License

MIT -- see LICENSE.