An open API service indexing awesome lists of open source software.

https://github.com/rggh/state_demo

Rust, State, Axum
https://github.com/rggh/state_demo

appstate axum demo-of-app-state-in-rust rust

Last synced: 9 months ago
JSON representation

Rust, State, Axum

Awesome Lists containing this project

README

          

[![Rust](https://github.com/RGGH/state_demo/actions/workflows/rust.yml/badge.svg)](https://github.com/RGGH/state_demo/actions/workflows/rust.yml)
# App State
Rust, State, Axum

cargo run
curl http://localhost:3000
curl -X POST http://localhost:3000/increment

---

❯ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
Running `target/debug/demo_state`


─────────────────────────────────────────────────────────

curl http://localhost:3000

Hello, world! (Counter: 0)

─────────────────────────────────────────────────────────

curl -X POST http://localhost:3000/increment

Counter incremented to: 2