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
- Host: GitHub
- URL: https://github.com/rggh/state_demo
- Owner: RGGH
- Created: 2023-12-13T20:57:32.000Z (about 2 years ago)
- Default Branch: version2
- Last Pushed: 2023-12-13T21:09:21.000Z (about 2 years ago)
- Last Synced: 2025-02-02T03:32:22.094Z (11 months ago)
- Topics: appstate, axum, demo-of-app-state-in-rust, rust
- Language: Rust
- Homepage: https://findthatbit.com
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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